curl --request POST \
--url https://rest-api.smsmngr.com/v1/recipient/register \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "420777123456",
"fcm_token": "fcm-abc"
}
'
{
"success": true,
"recipient": "b1f2c3d4-5678-90ab-cdef-1234567890ab"
}{
"message": "Failed to register recipient"
}Partneři a integrace
Registrovat příjemce
Vytvoří nového příjemce (pokud je id vynecháno, vygeneruje se nové id) nebo aktualizuje telefonní číslo a push tokeny existujícího příjemce. Aktualizována jsou pouze zaslaná pole.
POST
/
recipient
/
register
curl --request POST \
--url https://rest-api.smsmngr.com/v1/recipient/register \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "420777123456",
"fcm_token": "fcm-abc"
}
'
{
"success": true,
"recipient": "b1f2c3d4-5678-90ab-cdef-1234567890ab"
}{
"message": "Failed to register recipient"
}Authorizations
Body
application/json
Was this page helpful?