How do you use SMS services other than the ones included in ZP?

zenewbie

Client
Регистрация
25.12.2013
Сообщения
215
Благодарностей
17
Баллы
18
I tried using POST commands and managed to retrieve my balance and all the service-details, but I can't seem to get it to work to actually order a number and get the result, it says my API key is incorrect, although it worked when retrieving the balance (I put it in the data-field).
I need to hand over the following details in the POST command, but how?
--form 'key="Your API key"' \
--form 'country="US"' \
--form 'service="1"' \
--form 'pool=""' \
--form 'max_price=""' \
--form 'pricing_option=""' \
--form 'quantity=""' \
--form 'areacode="[123]"' \
--form 'exclude=""' \
--form 'create_token=""'

Can somebody point me in the right direction please?
 

Nord

Client
Регистрация
22.03.2012
Сообщения
2 375
Благодарностей
1 436
Баллы
113
Try in POST body

key=YourAPIkey&country=US&service=1&pool=&max_price=&pricing_option=&quantity=&areacode=&exclude=&create_token=
 

zenewbie

Client
Регистрация
25.12.2013
Сообщения
215
Благодарностей
17
Баллы
18
Ok, thanks!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)