saber13812002/gap-sdp-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

saber13812002/gap-sdp-api

最新稳定版本:1.2.3

Composer 安装命令:

composer require saber13812002/gap-sdp-api

包简介

A PHP wrapper for the Gap Messenger SDP API.

README 文档

README

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

Laravel Installation

1-

$ composer require saber13812002/gap-sdp-api

How to use in Laravel?

2- create endpoint in route/api.php

Route::post('/webhook-bot-get-id', [BotMotherController::class, 'getIdMother']);

3- set this url as callback in Gap settings:

https://yourdomain.com/api/webhook-bot-get-id?token=aaaaaaaaaaaaaaa1111111111111

4- you can use alias name

use Gap\SDP\Api as GapBot;
$bot = new GapBot($request->input('token'), $request);

5- use these functions like Telegram and Bale

$bot->ChatID()
$bot->Text()
$bot->Token()
$bot->Type()

another similarity to telegram

        $chat_id = $messenger->ChatID();

        $content = [
            'chat_id' => $chat_id,
            'text' => $message
        ];

        $messenger->sendMessage($content);

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

统计信息

  • 总下载量: 476
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固