Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 95 | | All time: 9,868 This week: 455 |
|
Description | | Author |
This package can send messages with the Gap instant messenger.
It can send HTTP messages to the GAP API Web server to perform several types of actions related to the instant messaging activity. Currently it can:
- Send typing action
- Send text messages
- Send the user location
- Send user contacts
- Send image
- Send audio
- Send video
- Send file
- Send voice message
- Edit message
- Delete message
- Answer callback
- Send invoice
- Send invoice inquiry
- Verify invoice
- Verify payment
- Pay inquiry
- Request wallet payment charge
- Reply to keyboard message
| |
|
Example
<?php
require dirname(__FILE__) . '/../vendor/autoload.php';
use Gap\SDP\Api;
$token = {HERE YOUR TOKEN};
$gm = new Api($token);
$chat_id = {HERE CHAT ID};
$replyKeyboard = $gm->replyKeyboard([[['yes' => 'Yes'], ['no' => 'No']], [['cancel' => 'Cancel']]]);
// send text
$gm->sendText($chat_id, 'Hello world', $replyKeyboard);
|
Details
Gap Messenger SDP API PHP
A PHP wrapper for the Gap Messenger SDP API.
Requirements
-
PHP 5.5 or higher
-
cURL
-
Gap Messenger app (mobile or web)
Get started
You will find everything you need to know to use this API in the wiki
Installation
$ git clone git@github.com:GapAfzar/Gap-SDP-API.git
$ cd Gap-SDP-API/
$ composer dumpautoload
What is Gap?
According to Gap Messenger:
>
Gap is a messaging app with a focus on speed and security, it?s super fast, simple and free. You can use Gap on all your devices at the same time ? your messages sync seamlessly across any of your phones, tablets or computers.
With Gap, you can send text, photos, videos and files of any type (doc, zip, mp3, etc), as well as create groups for up to 200 people. You can write to your phone contacts and find people by their usernames. As a result, Gap is like SMS and email combined ? and can take care of all your personal or business messaging needs.
License
MIT
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.