Module: CapitalOneAPI::RewardsResource
- Included in:
- Client
- Defined in:
- lib/capitalone-api/resources/rewards_resource.rb
Instance Method Summary collapse
- #get_rewards_account_details(access_token:, account_id:) ⇒ Object
- #get_rewards_accounts(access_token:) ⇒ Object
- #rewards_authorize_url(params = {}) ⇒ Object
Instance Method Details
#get_rewards_account_details(access_token:, account_id:) ⇒ Object
16 17 18 19 |
# File 'lib/capitalone-api/resources/rewards_resource.rb', line 16 def get_rewards_account_details(access_token:, account_id:) account_id = CGI.escape(account_id) get_request("#{@server_url}/rewards/accounts/#{account_id}", access_token) end |
#get_rewards_accounts(access_token:) ⇒ Object
10 11 12 |
# File 'lib/capitalone-api/resources/rewards_resource.rb', line 10 def get_rewards_accounts(access_token:) get_request("#{@server_url}/rewards/accounts", access_token) end |
#rewards_authorize_url(params = {}) ⇒ Object
5 6 7 |
# File 'lib/capitalone-api/resources/rewards_resource.rb', line 5 def (params = {}) "#{base_authorize_url(params)}&scope=openid%20read_rewards_account_info" end |