Name |
Type |
Description |
Notes |
id |
String |
ID of the API log |
[optional] |
request_method |
String |
Initial HTTP request method |
[optional] |
request_url |
String |
URL to which initial request was sent |
[optional] |
request_body |
String |
Body sent with initial request returned as a string |
[optional] |
request_headers |
Hash<String, String> |
Authorization and access information sent with initial request |
[optional] |
response_status |
String |
Status of response |
[optional] |
response_body |
String |
Full response body returned as a string |
[optional] |
response_headers |
Hash<String, String> |
Headers returned with response |
[optional] |
created_at |
String |
Date and time of response |
[optional] |
require 'TransferZero'
instance = TransferZero::ApiLog.new(id: a0696374-de2f-4b4e-a2d7-cb4e0a1240c0,
request_method: POST,
request_url: https://api.transferzero/v1/transactions/validate,
request_body: {"message":"Email dispatched: Accepted (user@transferzero.com)"},
request_headers: {"HTTP_VERSION":"HTTP/1.1","HTTP_ACCEPT":"application/json","HTTP_USER_AGENT":"TransferZero Ruby","HTTP_AUTHORIZATION_NONCE":"0000","HTTP_AUTHORIZATION_KEY":"0000","HTTP_AUTHORIZATION_SIGNATURE":"0000","HTTP_CONNECTION":"close","HTTP_HOST":"localhost:3002"},
response_status: 200,
response_body: {"object":{"result":0}},
response_headers: {"X-Frame-Options":"SAMEORIGIN","X-XSS-Protection":"1; mode=block","X-Content-Type-Options":"nosniff","Content-Type":"application/json; charset=UTF-8"},
created_at: 2019-01-11T00:00:00.001+0000)