PHP Classes

Gap SDP API: Send messages with the Gap instant messenger

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 95 All time: 9,868 This week: 455Up
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: 441892 in Iran Iran
Week rank: 180 Up2 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 (13)  
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 (13)  /  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 (13)  /  examples  /  assets  
File Role Description
  Accessible without login Image file gap.png Icon Icon image

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

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:95
This week:0
All time:9,868
This week:455Up