Class: Soaspec::TestServer::Invoices

Inherits:
Object
  • Object
show all
Defined in:
lib/soaspec/test_server/invoices.rb

Overview

Used to simulate requests requiring oauth authentication

Class Method Summary collapse

Class Method Details

.oauth_bodyObject



12
13
14
15
16
17
18
# File 'lib/soaspec/test_server/invoices.rb', line 12

def oauth_body
  {
    access_token: 'TEST_TOKENiIsImtpZCI6IlRFU1QifQ.AAAABBBBRfaWQiOiJhYWQ5MjY3SIMULATE_LARGE_TOKEN3MmM5OGQ5NGE2YTU5YSIsImV4cCI6MTUyNzU3MTY4Mywic2NvcGUiOltdfQ.3OmCdW7fLZMUST_BE_ABLE_TO_HANDLEgAGaJB0lFYyhaw',
    token_type: 'Bearer',
    expires_in: '86399'
  }
end

.oauth_headersObject



6
7
8
9
10
# File 'lib/soaspec/test_server/invoices.rb', line 6

def oauth_headers
  {
    'Content-Type' => 'application/json;charset=UTF-8'
  }
end