sajjadsarhadi
sajjadsarhadi

Reputation: 95

How to send SMS by SOAP API in PHP

I want to send an SMS message in PHP using SOAP API. I have the username, password, to, and text parameters.

I am trying to use this API: http://api.payamak-panel.com/post/send.asmx?wsdl

The method I am using is SendByBaseNumber.

Username    String  
Password    String  
text        []String    
to          String  
bodyId      Int 

My code:

$username = 'username';
$password = 'password';
$api = new MelipayamakApi($username,$password);
$smsSoap= $api->sms('soap');
$to = '09123456789';
$smsSoap->sendByBaseNumber($text, $to, $bodyId);

Upvotes: 0

Views: 577

Answers (1)

Alireza Etehadi
Alireza Etehadi

Reputation: 80

see : https://github.com/Melipayamak/melipayamak-php

sample code is here A PHP wrapper for melipayamak's web services

Upvotes: 1

Related Questions