All URIs are relative to https://api.meltwater.com
Method | HTTP request | Description |
---|---|---|
CreateToken | Post /oauth2/token | Create an access token |
OAuth2Token CreateToken($userKey, $authorization, $grantType, $scope)
Create an access token
Create an OAuth2 access token based on the provided client_id
and client_secret
. #### Appendix The Base64-encoded client_id
:client_secret
string can be generated in a terminal with following command: $ echo -n "your_client_id:your_client_secret" | base64 You will need base64
installed.
Name | Type | Description | Notes |
---|---|---|---|
userKey | string | The `user_key` from developer.meltwater.com. | |
authorization | string | `client_id:client_secret` Basic Auth (RFC2617) credentials. Must contain the realm `Basic` followed by a Base64-encoded `client_id`:`client_secret` pair. #### Example: Basic aAlfbb1haWxDSXhhDXxxZWKJAyZXQ= | |
grantType | string | OAuth2 grant type, use `client_credentials` | |
scope | string | OAuth2 scope, use `search` |
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]