ryo88c/globe-api-client

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

This package is auto-updated.

Last update: 2024-09-07 20:15:10 UTC


README

这是由 Globe API 客户端 BEAR.Sunday 开发的。

如何使用 Globe API

  1. Globe Labs 上创建账户。
  2. http://developer.globelabs.com.ph/apps/new 上创建新应用
  3. 将重定向 URL 设置为 https://example.com/oauth
  4. 从将要订阅的手机号码向应用的短码发送 INFO
  5. 收到欢迎信息后,订阅者需要回复 YES
  6. 订阅者回复(Yes)后,ACCESS_TOKEN 和订阅者的手机号码将被发送到您的重定向 URI

参阅: http://www.globelabs.com.ph/docs

在控制台运行。

$ php bootstrap/api.php post "/smsmessaging?subscriber={subscribed_phone_number}&address={phone_number_of_destination}&message={message}"

在内置的 Web 服务器上运行。

$ php -S 0.0.0.0:8080 bootstrap/api.php
$ curl -X POST https://:8080/smsmessaging?subscriber={subscribed_phone_number} -d address={phone_number_of_destination} -d message={message}