ryo88c/globe-api-client

dev-master 2016-02-09 06:59 UTC

This package is auto-updated.

Last update: 2022-08-07 15:58:23 UTC


README

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://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

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}