try{
$result = SendRequest('https://niksms.com/fa/publicapi/ptpSms', array(
'username' => 'YourUsername',
'password' => 'YourPassword',
'senderNumber' => '*********',
'numbers' => '***********,***********',
'sendOn' => '2018/01/04-10:00',
'sendType' => '1',
'messageIds' => '1001,1002',
'message' => 'Here You Should Put Your First Message Text, Here You Should Put Your First Message Text'
));
echo $result;
} catch(Exception $e){
echo $e->getMessage();
}