tamkeenlms/mobily-sms-api-json

Mobily.ws SMS服务的非官方API客户端

1.4 2020-05-02 13:02 UTC

This package is auto-updated.

Last update: 2024-09-19 22:41:28 UTC


README

这是一个Mobily.ws SMS服务的非官方API客户端。我们在与他们的API斗争后创建了它。这是对我们已经创建的另一个尝试的补充。这个使用他们所谓的JSON API!

用法

简单地创建一个客户端

	$client = new MobilyAPI\Client(username, password, senderName);

然后使用你想要的请求

	$newMessage = new MobilyAPI\Requests\SendMessage($client, numbers, message);
	$response = $newMessage->send(); // Send the request
	
	$newMessage->sent(); // Tells you if it was sent successfully

非常简单直接。祝你好运。