2017 © Pedro PelĂĄez
 

project globe-api-client

image

ryo88c/globe-api-client

  • Tuesday, February 9, 2016
  • by ryo88c
  • Repository
  • 1 Watchers
  • 2 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Globe Api Client

This is Globe API Client by BEAR.Sunday., (*1)

How to use Globe API

  1. Create account on Globe Labs.
  2. Create new app at http://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://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}

The Versions