module CapitalOneAPI::RewardsResource

Public Instance Methods

get_rewards_account_details(access_token:, account_id:) click to toggle source

@param [String] access_token @param [String] account_id

# 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:) click to toggle source

@param [String] access_token

# 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 = {}) click to toggle source

@param [Hash] params

# File lib/capitalone-api/resources/rewards_resource.rb, line 5
def rewards_authorize_url(params = {})
  "#{base_authorize_url(params)}&scope=openid%20read_rewards_account_info"
end