public static function send($messages,$numbers,$sendDateTime = null)
	{
		$client     = new Client();
		$messages = (array)$messages;
		$numbers = (array)$numbers;
		if($sendDateTime === null) {
			$body   = ['Messages'=>$messages,'MobileNumbers'=>$numbers,'LineNumber'=>config('smsir.line-number')];
		} else {
			$body   = ['Messages'=>$messages,'MobileNumbers'=>$numbers,'LineNumber'=>config('smsir.line-number'),'SendDateTime'=>$sendDateTime];
		}
		$result     = $client->post('http://restfulsms.com/api/MessageSend',['json'=>$body,'headers'=>['x-sms-ir-secure-token'=>self::getToken()],'connect_timeout'=>30]);

		self::DBlog($result,$messages,$numbers);

		return json_decode($result->getBody(),true);
	}
public static function send($messages,$numbers,$sendDateTime = null)
	{
		$client     = new Client();
		$messages = (array)$messages;
		$numbers = (array)$numbers;
		if($sendDateTime === null) {
			$body   = ['Messages'=>$messages,'MobileNumbers'=>$numbers,'LineNumber'=>config('smsir.line-number')];
		} else {
			$body   = ['Messages'=>$messages,'MobileNumbers'=>$numbers,'LineNumber'=>config('smsir.line-number'),'SendDateTime'=>$sendDateTime];
		}
		$result     = $client->post('http://restfulsms.com/api/MessageSend',['json'=>$body,'headers'=>['x-sms-ir-secure-token'=>self::getToken()],'connect_timeout'=>30]);

		self::DBlog($result,$messages,$numbers);

		return json_decode($result->getBody(),true);
	}
public static function send ( $ messages , $ numbers , $ sendDateTime = null ) { $ client = new Client ( ) ; $ messages = ( array ) $ messages ; $ numbers = ( array ) $ numbers ; if ( $ sendDateTime === null ) { $ body = [ 'Messages' => $ messages , 'MobileNumbers' => $ numbers , 'LineNumber' => config ( 'smsir.line-number' ) ] ; } else { $ body = [ 'Messages' => $ messages , 'MobileNumbers' => $ numbers , 'LineNumber' => config ( 'smsir.line-number' ) , 'SendDateTime' => $ sendDateTime ] ; } $ result = $ client -> post ( 'http://restfulsms.com/api/MessageSend' , [ 'json' => $ body , 'headers' => [ 'x-sms-ir-secure-token' => self :: getToken ( ) ] , 'connect_timeout' => 30 ] ) ; self :: DBlog ( $ result , $ messages , $ numbers ) ; return json_decode ( $ result -> getBody ( ) , true ) ; }
Simple send message with sms.ir account and line number

@param $messages = Messages - Count must be equal with $numbers
@param $numbers  = Numbers - must be equal with $messages
@param null $sendDateTime = don't fill it if you want to send message now

@return mixed, return status
Simple send message with sms . ir account and line number