vigo5190/bytehand-api-php

通过 ByteHand 发送短信

v0.3.0 2014-05-29 17:20 UTC

This package is not auto-updated.

Last update: 2024-09-24 07:01:40 UTC


README

bytehand-api-php 是一个用于通过 ByteHand 发送短信的 PHP 脚本。

  • 发送 SMS
  • 检查余额
  • 检查短信状态

关于 ByteHand

ByteHand - 是一个提供全球短信发送服务的平台。请使用我的推荐链接 http://www.bytehand.com/?r=b773476a61167edd

版本

0.2

技术

规格

  • PHP 5.3 需要

安装

只需使用 composer

使用

<?php

$config = array(
              'id' => 0000,
              'key' => "XXXXXXXXXXXXXXX",
              'from' => "SMS-INFO",
          );
ByteHandAPI\smser::init($config);



$message = new ByteHandAPI\message();
echo $message->to('cell number')->text("test message")->send()->getStatus();
$message_id = $message->getId();

$message_old = new ByteHandAPI\message($message_id);
echo $mmm->getStatus();



?>