Globe Api Client
This is Globe API Client by BEAR.Sunday., (*1)
How to use Globe API
- Create account on Globe Labs.
- Create new app at http://developer.globelabs.com.ph/apps/new
- Set Redirect URL as
https://example.com/oauth
- Send from phone number that will be subscribed
INFO
to SHORT CODE of the app.
- Upon receipt of the welcome message, the subscriber needs to reply
YES
- After the subscriber replies (
Yes
), the ACCESS_TOKEN
and the subscriberâs mobile number will be posted to your Redirect URI
See also: http://www.globelabs.com.ph/docs, (*2)
Run on console.
$ php bootstrap/api.php post "/smsmessaging?subscriber={subscribed_phone_number}&address={phone_number_of_destination}&message={message}"
Run on the built-in web server.
$ php -S 0.0.0.0:8080 bootstrap/api.php
$ curl -X POST http://localhost:8080/smsmessaging?subscriber={subscribed_phone_number} -d address={phone_number_of_destination} -d message={message}