sweettooth / sweettooth-php
This package is abandoned and no longer maintained.
No replacement package was suggested.
Sweet Tooth PHP Library
dev-master
2014-08-20 16:36 UTC
Requires
- php: >=5.2
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
This package is not auto-updated.
Last update: 2020-03-02 07:42:23 UTC
README
Get the latest version of the Sweet Tooth PHP library with:
git clone https://github.com/sweettooth/sweettooth-php
To get started, add the following to your PHP script:
require_once("/path/to/sweettooth-php/lib/SweetTooth.php");
Simple usage looks like:
SweetTooth::setApiKey('sk_gUjtToMzKybHZ3yGg3C4Sv4L'); $newCustomerData = array( 'first_name' => 'Wayne', 'last_name' => 'Rooney', 'email' => 'wrooney@example.com' ); $customer = SweetTooth_Customer::create($newCustomerData); echo $customer;
Documentation
Please see https://www.sweettoothrewards.com/api for up-to-date documentation.
Acknowledgements
Inspired by Stripe PHP