This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": { | |
"sent": 1, | |
"delivered": 0, | |
"not_delivered": 0, | |
"price": 3.72, | |
"status": 3, | |
"from": "COMPANY", | |
"body": "%Name% %NameMiddle%! Перед началом весеннего сезона хотим предложить новую машинку со скидкой по цене 3999 руб. Подробнее https://goo.gl/%URL% и тел. 84950000000" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": { | |
"id": 82614490, | |
"price": 3.72, | |
"currency": "RUR" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": { | |
"price": 3.72, | |
"currency": "RUR", | |
"phones": 1 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": { | |
"count": 3, | |
"fields": [ | |
"id", | |
"type", | |
"value" | |
], | |
"data": [ | |
[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": { | |
"count": 1, | |
"fields": [ | |
"id", | |
"name", | |
"phone", | |
"date", | |
"description", | |
"exceptions" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
key='Публичный ключ'; | |
pr_key='Приватный ключ'; | |
action='getCampaignInfo'; echo -e "key=$key;version=3.0;action=$action;id=82614490" | \ | |
tr ';' '\n' | \ | |
sort -t'=' -k1 | \ | |
cut -f2 -d'=' | \ | |
paste -s -d';' - | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
key='Публичный ключ'; | |
pr_key='Приватный ключ'; | |
action='createCampaign'; printf '%s;' "key=$key" 'version=3.0' "action=$action" 'sender=COMPANY' 'text=%Name% %NameMiddle%! Перед началом весеннего сезона хотим предложить новую машинку со скидкой по цене 3999 руб. Подробнее https://goo.gl/%URL% и тел. 84950000000' 'list_id=853365' 'type=2' | \ | |
sed 's/;$//' | tr ';' '\n' | \ | |
sort -t'=' -k1 | \ | |
cut -f2 -d'=' | \ | |
paste -s -d';' - | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
key='Публичный ключ'; | |
pr_key='Приватный ключ'; | |
action='checkCampaignPrice'; printf '%s;' "key=$key" 'version=3.0' "action=$action" 'sender=COMPANY' 'text=%Name% %NameMiddle%! Перед началом весеннего сезона хотим предложить новую машинку со скидкой по цене 3999 руб. Подробнее https://goo.gl/%URL% и тел. 84950000000' 'list_id=853365' 'type=2' | \ | |
sed 's/;$//' | tr ';' '\n' | \ | |
sort -t'=' -k1 | \ | |
cut -f2 -d'=' | \ | |
paste -s -d';' - | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
key='Публичный ключ'; | |
pr_key='Приватный ключ'; | |
action='getAllAddressBookVariables'; echo -e "key=$key;version=3.0;action=$action;idAddressBook=853365" | \ | |
tr ';' '\n' | \ | |
sort -t'=' -k1 | \ | |
cut -f2 -d'=' | \ | |
paste -s -d';' - | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
key='Публичный ключ'; | |
pr_key='Приватный ключ'; | |
action='Команда'; echo -e "key=$key;version=3.0;action=$action;param1=val1;...;paramN=valN" | \ | |
tr ';' '\n' | \ | |
sort -t'=' -k1 | \ | |
cut -f2 -d'=' | \ | |
paste -s -d';' - | \ |
NewerOlder