Download the PHP package aglipanci/postmates-api without Composer
On this page you can find all versions of the php package aglipanci/postmates-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aglipanci/postmates-api
More information about aglipanci/postmates-api
Files in aglipanci/postmates-api
Package postmates-api
Short Description Postmates API Client for PHP
License MIT
Homepage https://github.com/aglipanci/postmates-client
Informations about the package postmates-api
PHP API Client for Postmates
A PHP client for consuming the Postmates API.
Install
Via Composer
Note that the minimum required version of PHP is 5.6
Usage
Create client
Retrieve an API Key here after creating a developer account.
Get a Delivery Quote
https://postmates.com/developer/docs/endpoints#get_quote
Get Delivery Zones
https://postmates.com/developer/docs/endpoints#get_zones
Create a Delivery
https://postmates.com/developer/docs/endpoints#create_delivery
List Deliveries
https://postmates.com/developer/docs/endpoints#list_deliveries
Get a Delivery
https://postmates.com/developer/docs/endpoints#get_delivery
Cancel a Delivery
https://postmates.com/developer/docs/endpoints#cancel_delivery
Add Tip to a Delivery
https://postmates.com/developer/docs/endpoints#tip_delivery
Handing WebHooks
if you want to just validate the request but handing it on your own:
https://postmates.com/developer/docs#webhooks
Errors
All requests will throw an Postmates\PostmatesException in case API returns an Error. An Example:
Testing
Credits
WooCommerce Integration
WooCommerce Postmates Integration Plugin
License
The MIT License (MIT).