itbc / gatesms-client
gatesms php client for messaging
v0.0.3
2018-11-07 12:15 UTC
Requires
- php: >=5.3
Requires (Dev)
- phpspec/phpspec: ^2.4
- psr/log: ^1.0
This package is not auto-updated.
Last update: 2024-04-27 07:42:05 UTC
README
Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:
composer require itbc/gatesms-client
How to use:
Connect and authorization:
$api = new \gatesms\ApiClient\Client([
"url" => "http://gatesms.org/api",
"client_id" => "YOU_LOGIN",
"client_secret" => "YOU_API_KEY"
]);
Sendmessage:
$api->Messages->Send('12345678900', 'Hello', 'TEST');
Get message status:
$api->Messages->Status(1);
Get messages list:
$api->Messages->List();
Get messages info:
$api->Messages->Info(1);
Get phone info:
$api->Phones->Info('12345678900');
Get message cost by phone:
$api->Phones->Cost('12345678900');
Use inside URL shorter:
$api->Url->Short('http://google.com/?query=howto');
License
This bundle is released under the MIT license. Free Software, Hell Yeah!