Download the PHP package messagemedia/messages-sdk without Composer
On this page you can find all versions of the php package messagemedia/messages-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download messagemedia/messages-sdk
More information about messagemedia/messages-sdk
Files in messagemedia/messages-sdk
Package messages-sdk
Short Description The MessageMedia Messages API provides a number of endpoints for building powerful two-way messaging applications.
License Apache-2.0
Homepage https://developers.messagemedia.com
Informations about the package messages-sdk
MessageMedia Messages PHP SDK
The MessageMedia Messages API provides a number of endpoints for building powerful two-way messaging applications.
Table of Contents
- Authentication
- Errors
- Information
- Slack and Mailing List
- Bug Reports
- Contributing
- Installation
- Get Started
- API Documentation
- Need help?
- License
:closed_lock_with_key: Authentication
Authentication is done via API keys. Sign up at https://hub.messagemedia.com/register to get your API keys.
Requests are authenticated using HTTP Basic Auth or HMAC. For Basic Auth, your API key will be basicAuthUserName and API secret will be basicAuthPassword. For HMAC, your API key will be hmacAuthUserName and API secret will be hmacAuthPassword. This is demonstrated in the Send an SMS example below.
:interrobang: Errors
Our API returns standard HTTP success or error status codes. For errors, we will also include extra information about what went wrong encoded in the response as JSON. The most common status codes are listed below.
HTTP Status Codes
Code | Title | Description |
---|---|---|
400 | Invalid Request | The request was invalid |
401 | Unauthorized | Your API credentials are invalid |
403 | Disabled feature | Feature not enabled |
404 | Not Found | The resource does not exist |
50X | Internal Server Error | An error occurred with our API |
:newspaper: Information
Mailing List
If you have any questions, comments, or concerns, please email us at: [email protected]
Bug reports
If you discover a problem with the SDK, we would like to know about it. You can raise an issue or send an email to: [email protected]
Contributing
We welcome your thoughts on how we could best provide you with SDKs that would simplify how you consume our services in your application. You can fork and create pull requests for any features you would like to see or raise an issue. Please be aware that a large share of the files are auto-generated by our backend tool.
:star: Installation
Run the Composer command to install the latest stable version of the Messages SDK:
:clapper: Get Started
It's easy to get started. Simply enter the API Key and secret you obtained from the MessageMedia Developers Portal into the code snippet below and a mobile number you wish to send to.
Send an SMS
Destination numbers (destinationNumber
) should be in the E.164 format. For example, +61491570156
NOT 0491570156
. The code snippet below comprises of only the bare minimum parameters required to send a message. You can view the full list of parameters over here. Alternatively, you can refer this code snippet with all the parameters in use.
Send an MMS
Destination numbers (destinationNumber
) should be in the E.164 format. For example, +61491570156
NOT 0491570156
. The code snippet below comprises of only the bare minimum parameters required to send a message. You can view the full list of parameters over here. Alternatively, you can refer this code snippet with all the parameters in use.
Get Status of a Message
You can get a messsage ID from a sent message by looking at the message_id
from the response of the above example.
Get replies to a message
You can check for replies that are sent to your messages
Check Delivery Reports
This endpoint allows you to check for delivery reports to inbound and outbound messages.
Confirm Delivery Reports
This endpoint allows you to mark delivery reports as confirmed so they're no longer returned by the Check Delivery Reports function.
Check credits remaining (Prepaid accounts only)
This endpoint allows you to check for credits remaining on your prepaid account.
:closed_book: API Reference Documentation
Check out the full API documentation for more detailed information.
:confused: Need help?
Please contact developer support at [email protected] or check out the developer portal at developers.messagemedia.com
:page_with_curl: License
Apache License. See the LICENSE file.
All versions of messages-sdk with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
mashape/unirest-php Version ~3.0.1
apimatic/jsonmapper Version >=1.3.0