Reputation: 95
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
Reputation: 80
see : https://github.com/Melipayamak/melipayamak-php
sample code is here A PHP wrapper for melipayamak's web services
Upvotes: 1