smsapi / smsapi-php-client

SMSAPI PHP client that allows you to send messages, manage Short URLs and administrate your SMSAPI account.
https://www.smsapi.pl
Other
64 stars 39 forks source link

add support for prices look action #69

Open giannisdag opened 8 years ago

giannisdag commented 8 years ago

There is no action to look up for the prices per sms per country

pdzieniszewski commented 7 years ago

Hi,

We will discuss about it in our team. Thanks for suggestion.

giannisdag commented 7 years ago

ok thank you, for the moment I do the job like this $url = 'https://api.smsapi.com/prices.do'; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $url); curl_setopt($c, CURLOPT_POST, true); $curl_postfields = 'username='.$username.'&password='.$password; curl_setopt($c, CURLOPT_POSTFIELDS,$curl_postfields); curl_setopt($c, CURLOPT_RETURNTRANSFER, true); $jsonContent = curl_exec($c);