Use API
Using the API After registering and receiving an API account, the customer will be given an appId and appSecret. When calling the API, this appSecret must be used to generate a hash parameter. Details on how to create the hash parameter can be found in the "Create Hash" section and in the documentation for each API.
Requests to the API should be made to the following domain:
Depending on the API, the method and path will differ.
Create Hash
All requests to AntBuddy, in addition to the data, must include a hash value. The hash is calculated as the sha256 of all parameters (excluding the hash).
Example:
appId = 65446465436742018 appSecret = 123456
API for retrieving call history:
GET /oapi/v1/call/histories?appId=6544646543674&created_from=2018-02-07T02:19:33.000Z&created_to=2018-02-07T07:04:22.000Z
The hash is calculated as follows:
= 9b11b9ff77dbba70fe059acf84c02cfe6af90de9122e4d3bd6ec69c9d637f9ed
Note the order of the parameters for each API.
Data Format
Data sent and received will be in JSON format:
"Content-Type": "application/json"
HTTP Response
200
Success
400
Error due to incorrect or invalid input data
500
Error due to API server issues
503
Error due to exceeding the request limit
Last updated