a simple php SDK for the Mobile Commons API
Right now this has just been built for the purpose of allowing the Webform External module to push data to Mobile Commons's Profile Update endpoint.
It has one class, MobileCommons, which is instantiated with a username, password, and (optional) subdomain - defaults to https://secure.mcommons.com
Currently, there are only two methods:
passed three parameters:
- endpoint: appended to "https://secure.mcommons.com/api/" (assuming subdomain is "https://secure.mcommons.com")
- method: defaults to "GET," can be set to "POST"
- parameters: array of parameters to send with the request (optional)
passed an array of parameters. parameter "phone_number" is required