nadar / aspsms Goto Github PK
View Code? Open in Web Editor NEWSimple to use sms sending class for the aspsms.com gateway.
Home Page: https://www.aspsms.com/en/solutions/3rd-party/indielab/
License: Other
Simple to use sms sending class for the aspsms.com gateway.
Home Page: https://www.aspsms.com/en/solutions/3rd-party/indielab/
License: Other
deliveryStatus should also return a timestamp value in order to format for current locale.
Add travis ci test and coveralls.
Hi
I get the following Exception:
Aspsms\Exception Object ( [message:protected] => Error while printing the response code into sendStatus. ResponseCode seems not valid. Response: "StatusCode:8" [string:Exception:private] => [code:protected] => 0 [file:protected] => /Applications/MAMP/htdocs/myvbc/vendor/nadar/aspsms/src/Aspsms.php [line:protected] => 227 [trace:Exception:private] => Array ( [0] => Array ( [file] => /Applications/MAMP/htdocs/myvbc/libs/framework/helper.php [line] => 55 [function] => sendTextSms [class] => Aspsms\Aspsms [type] => -> [args] => Array ( [0] => XXX [1] => Array ( [0] => xxx xxx xx xx ) ) ) [1] => Array ( [file] => /Applications/MAMP/htdocs/myvbc/pages/auth.page.php [line] => 62 [function] => sendSMS [class] => MyHelper [type] => :: [args] => Array ( [0] => myVBC [1] => xxx xxx xx xx [2] => "XXX" ) ) [2] => Array ( [file] => /Applications/MAMP/htdocs/myvbc/libs/framework/page.php [line] => 231 [function] => createAccessAction [class] => PageAuth [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /Applications/MAMP/htdocs/myvbc/libs/framework/application.php [line] => 33 [function] => work [class] => MyPage [type] => -> [args] => Array ( ) ) [4] => Array ( [file] => /Applications/MAMP/htdocs/myvbc/index.php [line] => 125 [function] => run [class] => MyApplication [type] => :: [args] => Array ( ) ) ) [previous:Exception:private] => )
But Status Code 8 seems not valid
/**
* Response status codes when you send an sms
*
* @var array
*/
private $sendStatusCodes = array(
1 => "Ok",
3 => "Authorization failed (wrong userkey and/or password).",
5 => "Not enough Credits available.",
);
What's wrong? Where do I find all possible status codes?
Private properties should be prefixed with an underscore.
.
Provider better and IDE usable PHPDocs for properties and class descriptions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.