class Soaspec::TestServer::Invoices

Used to simulate requests requiring oauth authentication

Attributes

user_used[RW]

Public Class Methods

oauth_body() click to toggle source
# File lib/soaspec/test_server/invoices.rb, line 18
def oauth_body
  {
    access_token: 'TEST_TOKENiIsImtpZCI6IlRFU1QifQ.AAAABBBBRfaWQiOiJhYWQ5MjY3SIMULATE_LARGE_TOKEN3MmM5OGQ5NGE2YTU5YSIsImV4cCI6MTUyNzU3MTY4Mywic2NvcGUiOltdfQ.3OmCdW7fLZMUST_BE_ABLE_TO_HANDLEgAGaJB0lFYyhaw',
    token_type: 'Bearer',
    expires_in: '86399',
    instance_url: %w[http://this_is_my_instance http://this_is_second_instance].sample
  }
end
oauth_headers() click to toggle source
# File lib/soaspec/test_server/invoices.rb, line 12
def oauth_headers
  {
    'Content-Type' => 'application/json;charset=UTF-8'
  }
end