Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Latest commit

 

History

History
41 lines (24 loc) · 1.74 KB

Oauth2Api.md

File metadata and controls

41 lines (24 loc) · 1.74 KB

\Oauth2Api

All URIs are relative to https://api.meltwater.com

Method HTTP request Description
CreateToken Post /oauth2/token Create an access token

CreateToken

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.

Parameters

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`

Return type

OAuth2Token

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]