Subscribers
API URL
URL used to send HTTP requests:
https://portal.bulkgate.com/api/1.0/subscribe/subscribers
POST /api/1.0/subscribe/subscribers HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
Cache-Control: no-cache
Parameters table
| PARAMETER NAME | VALUE | MANDATORY | DEFAULT VALUE |
|---|---|---|---|
| application_id | Application ID | Yes | - |
| application_token | Application token | Yes | - |
| group | Recipient group | Yes | - |
Example of full request
POST /api/1.0/subscribe/subscribers HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
Cache-Control: no-cache
{
"application_id": "####",
"application_token": "##################################################",
"group": 1
}
Response to this command may be:
In case of success:
{
"data": {
"subscribers": [
{
"first_name": "#####",
"last_name": "######",
"first_name_vokativ": "#####x",
"last_name_vokativ": "######",
"identification": "telegram:########",
"note": ""
}
]
}
}