定制 twosuperior/textmarketer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

twosuperior/textmarketer

Composer 安装命令:

composer require twosuperior/textmarketer

包简介

Unofficial Package for Official Text Marketer Rest Client

README 文档

README

TextMarketer's PHP SDK for easy integration between your app and our SMS messaging REST API.

Example

// REPLACE with your Text Marketer API username and password
$client = new \TextMarketer\Client('myuser', 'mypass', 'production');

try {
	
	$credits = $client->getCredits();
	echo "I have $credits credits.<br />\n";

	if ($credits > 0)
		$result = $client->sendSMS('Hello SMS World!', '447777777777', 'My Name');
	
	echo "Used {$result['credits_used']} credits, message ID {$result['message_id']}, scheduled ID {$result['scheduled_id']}<br /><br />\n"; 
	
} catch (Exception $ex) {
	// handle a possible error
	echo "An error occurred: {$ex->getCode()}, {$ex->getMessage()}";
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-11