ryo88c / globe-api-client
dev-master
2016-02-09 06:59 UTC
Requires
- php: >=5.5.0
- bear/package: ~1.0
- guzzlehttp/guzzle: ^6.1
- josegonzalez/dotenv: ~2.0
Requires (Dev)
- composer/composer: >=1.0.0-alpha10
- phpmd/phpmd: ~2.3
- phpunit/phpunit: ~4.8
- squizlabs/php_codesniffer: ~2.3
This package is auto-updated.
Last update: 2024-09-07 20:15:10 UTC
README
这是由 Globe API 客户端 BEAR.Sunday 开发的。
如何使用 Globe API
- 在 Globe Labs 上创建账户。
- 在 http://developer.globelabs.com.ph/apps/new 上创建新应用
- 将重定向 URL 设置为
https://example.com/oauth
- 从将要订阅的手机号码向应用的短码发送
INFO
。 - 收到欢迎信息后,订阅者需要回复
YES
- 订阅者回复(
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}