For structuring custom OAuth calls use type oauth
API with the parameters below.
Parameter Name | Description | Required/Optional | Default |
---|---|---|---|
name | Name of the API (custom name) | Optional | the defined url |
token_request | Nest here any detail relevant to the request to get the bearer access token. (Options in General API) | Required | - |
data_request | Nest here any detail relevant to the data request. (Options in General API) | Required | - |
scrape_interval | Time interval to wait between runs (unit: minutes ) |
Optional | 1 (minute) |
additional_fields | Additional custom fields to add to the logs before sending to logzio | Optional | Add type as api-fetcher |
apis:
- name: oauth test
type: oauth
token_request:
url: https://the/token/url
headers:
my_client_id: my_client_password
data_request:
url: https://the/data/url
method: POST
scrape_interval: 8
additional_fields:
type: oauth-test
some_field_to_add_to_logs: 1234
logzio:
url: https://listener-au.logz.io:8071 # for us-east-1 region delete url param (default)
token: <<SHIPPING_TOKEN>>