PHP Classes

Gap SDP API: Send messages with the Gap instant messenger

Recommend this page to a friend!
  Info   View files Example   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 95 This week: 1All time: 9,842 This week: 560Up
Version License PHP version Categories
gap-sdp-api 1.0Artistic License5PHP 5, Web services, Chat
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

Picture of Saeb Khanzadeh
Name: Saeb Khanzadeh <contact>
Classes: 1 package by
Country: Iran Iran
Age: ???
All time rank: 441492 in Iran Iran
Week rank: 411 Up4 in Iran Iran Up

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


  Files folder image Files  
File Role Description
Files folder imageexamples (7 files, 1 directory)
Files folder imagesrc (1 directory)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
Files folder imageassets (1 file)
  Accessible without login Plain text file action.php Example Example script
  Accessible without login Plain text file edit.php Example Example script
  Accessible without login Plain text file form.php Example Example script
  Accessible without login Plain text file image.php Example Example script
  Accessible without login Plain text file inline_keyboard.php Example Example script
  Accessible without login Plain text file invoice.php Example Example script
  Accessible without login Plain text file text.php Example Example script

  Files folder image Files  /  examples  /  assets  
File Role Description
  Accessible without login Image file gap.png Icon Icon image

  Files folder image Files  /  src  
File Role Description
Files folder imageSDP (1 file)

  Files folder image Files  /  src  /  SDP  
File Role Description
  Plain text file Api.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:95
This week:1
All time:9,842
This week:560Up