项目作者: BotDelive

项目描述 :
A PHP library of BotDelive API
高级语言: PHP
项目地址: git://github.com/BotDelive/botdelivePHP.git
创建时间: 2018-09-11T10:43:35Z
项目社区:https://github.com/BotDelive/botdelivePHP

开源协议:MIT License

下载


botdelive

About

BotDelive is a Push Notification and 2-factor authentication API service that works over the chat bots (Telegram and Messenger).

  1. composer require botdelive/botdelive

Requirements

  1. Create an account.
  2. Create an app on the dashboard to get appId and secretKey credentials.
  3. cURL.
  4. PHP 5.6+

Usage

Let’s initialize the library first. Don’t forget to replace <YOUR_APP_ID> and <YOUR_SECRET_KEY>.

  1. use BotDelive\BotDelive;
  2. $bd = new BotDelive('<YOUR_APP_ID>', '<YOUR_SECRET_KEY>');

Verify the “Access Code”:

  1. $bd->verify('<BOT_GENERATED_ACCESS_CODE>');

Send 2-factor authentication request (long polling):

  1. $bd->auth('<USER_ID>');

Send Push Notification request:

  1. $bd->push('<USER_ID>', '<MESSAGE>');

Documentation

Complete documentation available at: https://botdelive.com/docs