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

Latest commit

 

History

History
71 lines (41 loc) · 3.56 KB

ClientsApi.md

File metadata and controls

71 lines (41 loc) · 3.56 KB

\ClientsApi

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

Method HTTP request Description
CreateClientCredentials Post /v2/clients Register new client
DeleteClientCredentials Delete /v2/clients/{client_id} Delete client.

CreateClientCredentials

ClientCredentials CreateClientCredentials($userKey, $authorization)

Register new client

Register new client Creates a new pair of client credentials (client_id/client_secret pair). Requires your Meltwater credentials (email:password) to authenticate. #### Appendix The Base64-encoded email:password string can be generated in a terminal with following command: $ echo -n "your_email@your_domain.com:your_secret_password" | base64 You will need base64 installed.

Parameters

Name Type Description Notes
userKey string The `user_key` from developer.meltwater.com.
authorization string `email`:`password` Basic Auth (RFC2617) credentials. Must contain the realm `Basic` followed by a Base64-encoded `email`:`password` pair using your Meltwater credentials. #### Example: Basic bXlfZW1haWxAZXhhbXJzZWNyZXQ=

Return type

ClientCredentials

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

DeleteClientCredentials

DeleteClientCredentials($userKey, $authorization, $clientId)

Delete client.

Delete client. Deletes your current client credentials consisting of client_id and client_secret. After calling this resource, you will not be able to use the Meltwater API unless you create a new set of client credentials! Requires your Meltwater credentials (email:password) to authenticate. #### Appendix The Base64-encoded email:password string can be generated in a terminal with following command: $ echo -n "your_email@your_domain.com:your_secret_password" | base64 You will need base64 installed.

Parameters

Name Type Description Notes
userKey string The `user_key` from developer.meltwater.com.
authorization string `email`:`password` Basic Auth (RFC2617) credentials. Must contain the realm `Basic` followed by a Base64-encoded `email`:`password` pair using your Meltwater credentials. #### Example: Basic bXlfZW1haWxAZXhhbXJzZWNyZXQ=
clientId string Client ID

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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