textflow/sms-api 问题修复 & 功能扩展

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

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

textflow/sms-api

最新稳定版本:v1.6.4

Composer 安装命令:

composer require textflow/sms-api

包简介

PHP library that helps you send SMS using TextFlow API

README 文档

README

Packagist Packagist

Documentation

Here you will see just a sample usage of sending an SMS, for more instructions (including methods for user verification) check out our official PHP documentation.

Installation

composer require textflow/sms-api

Sample Usage

To send an SMS, you have to create an API key using the Textflow dashboard. When you register an account, you automatically get an API key with one free SMS which you can send anywhere.

Just send a message

require_once 'vendor/autoload.php';

$client = new TextFlowClient("YOUR_API_KEY");

$client->send_sms("+38112312341", "SMS body...");

Handle send message request result

$res = $client->send_sms("+38112312341", "SMS body...");

if ($res->ok)
    var_dump($res->data);
else
    var_dump($res->message);

Example result object of the successfully sent message

{
    "ok": true,
    "status": 200,
    "message": "Message sent successfully",
    "data": {
        "to": "+381611231234",
        "content": "Dummy message text...",
        "country_code": "RS",
        "price": 0.05,
        "timestamp": 1674759108881
    }
}

Example result object of the unsuccessfully sent message

{
    "ok": false,
    "status": 404,
    "message": "API key not found"
}

Getting help

If you need help installing or using the library, please check the FAQ first, and contact us at support@textflow.me if you don't find an answer to your question.

If you've found a bug in the API, package or would like new features added, you are also free to contact us!

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固