Skip to content

ryo88c/GlobeApiClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Globe Api Client

This is Globe API Client by BEAR.Sunday.

How to use Globe API

  1. Create account on Globe Labs.
  2. Create new app at http:https://developer.globelabs.com.ph/apps/new
  3. Set Redirect URL as https://example.com/oauth
  4. Send from phone number that will be subscribed INFO to SHORT CODE of the app.
  5. Upon receipt of the welcome message, the subscriber needs to reply YES
  6. After the subscriber replies (Yes), the ACCESS_TOKEN and the subscriber’s mobile number will be posted to your Redirect URI

See also: http:https://www.globelabs.com.ph/docs

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:https://localhost:8080/smsmessaging?subscriber={subscribed_phone_number} -d address={phone_number_of_destination} -d message={message}

About

Globe API Client by BEAR.Sunday

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published