承接 mikechip/chatapi 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mikechip/chatapi

最新稳定版本:2.0.0

Composer 安装命令:

composer require mikechip/chatapi

包简介

Simple middleware to work with Chat-API.com

README 文档

README

Chat-API.com SDK

This library makes work with chat-api.com easier

Deprecated

The library was made quite a while ago and may be out of date. Please make a fork if you want to use it.

Installation

Just download chatapi.class.php or use Composer:

composer require mikechip/chatapi

Create instance

  $api = new ChatApi(
        '_token_', // Chat-Api.com token
        'https://foo.chat-api.com/instance1234' // Chat-Api.com API url
  );

Get QR code

Proxying via PHP:

header('Content-Type: image/png');
readfile( $api->getQRCode() );

Or show directly:

<img src="<?=$api->getQRCode();?>" />

Send message

die(
    ($api->sendPhoneMessage('+12345', 'It works!') == true) ? 'Message sent' : 'Fail'
);

Support

Use Issues to contact me

统计信息

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

GitHub 信息

  • Stars: 29
  • Watchers: 6
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2019-04-27