This API can be used to send messages to instant messengers and provides the following methods:
- Sending messages to instant messengers
- Getting messages’ delivery statuses
- Callback method for notification about changing message delivery status
The service is a RESTful API and includes different GET and POST requests. The body of each POST request is a JSON object with request parameters. The parameters of GET requests are passed as a part of URL. For example, this request api/imOutMessage/{imOutMessageId}
has one parameter – imOutMessageId
. All methods require authorization with an API key. Each request should have an X-API-KEY header in the header section of the request body.
In the example below, you can see a request header section with the X-API-KEY header
, its value is abcdef12345
. This is a user’s API-key value. When a POST request is being executed, the header must also have the Content-Type
parameter specified in the following format: "value":"application/json
.
POST /imOutMessage HTTP/1.0 Host: edna.io Accept: */* User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) X-API-KEY: abcdef12345 Content-Type:application/json