Download the PHP package rewake/sendlane without Composer
On this page you can find all versions of the php package rewake/sendlane. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rewake/sendlane
More information about rewake/sendlane
Files in rewake/sendlane
Package sendlane
Short Description Sendlane API SDK for PHP
License proprietary
Homepage http://github.com
Informations about the package sendlane
Sendlane PHP SDK
This is a quick SDK for the Sendlane API (www.sendlane.com). Method names match the API endpoints to help keep things consistent and hopefully a bit easier to integrate with Sendlane.
Some Notes:
- This library throws exceptions, which should be handled by your application
- You can use this library as an instantiated object or statically
- Please see Sendlane's API documentation for more information on how their API works: https://documenter.getpostman.com/view/7477734/S1TN5g5b?version=latest
- I have a few instantiation tests in place, but will likely not have time to get around to writing more anytime soon
Examples
Instantiation
Basic Instantiation
Configuration After Instantiation
Allows the possibility of switching accounts without destroying and re-creating the Sendlane class (untested).
The configure()
method is also chain-able.
Add subscriber to a list
Object oriented call
Static call
Get user details
Note that this method has required arguments. For endpoints where all properties are required, the properties are enforced as method arguments to help prevent missing data. Please refer to API documentation to see what properties can be sent to which endpoint.
General API information
Example API call (POST method for all calls)
https://SUBDOMAIN.sendlane.com/api/v1/METHOD?api=APIKEY&hash=HASHKEY
List of API Calls (POST method for all calls)