Giter Club home page Giter Club logo

spreedly-php-1's Introduction

Spreedly PHP API
Luke Ehresman - http://luke.ehresman.org

This set of classes provides a convenienet wrapper around the Spreedly
API (http://spreedly.com).  Instead of dealing with HTTP directly with
CURL, you can use these objects to handle everything for you.  Some
examples are provided, but for some really good examples, check out
the unit tests.

   *************************************************
   *   Consulting services are available to help   *
   *   integrate this with your site or project:   *
   *   http://www.tebros.com                       *
   *************************************************

Report any issues in GitHub:
http://github.com/lehresman/spreedly-php/issues

CONTRIBUTORS
============
Luke Ehresman - http://luke.ehresman.org
Beau West - http://beaudesigns.net
Christoffer Lejdborg - http://www.lejdborg.se
thejohnny


REQUIREMENTS
============
php (version 5.2 for SpreedlySubscriber::update functionality)
mod_curl
mod_ssl


INSTALL
=======
Simply copy class.spreedly.inc into your include path on your web server
and include it in your PHP scripts.


EXAMPLE #1 - Creating a subscriber with a free trial
====================================================
Spreedly::configure($my_site_name, $my_site_token);
$sub = SpreedlySubscriber::create(78, "[email protected]", "testUser");
$sub->activate_free_trial($trial_plan_id);


EXAMPLE #2 - Getting a user and comping a month
===============================================
Spreedly::configure($my_site_name, $my_site_token);
$sub = SpreedlySubscriber::find(78);
$sub->comp(1, "months", "full");


MORE EXAMPLES
=============
For more examples, see the unit tests in the test directory.

spreedly-php-1's People

Contributors

lehresman avatar phawk avatar thejohnny avatar

Watchers

James Cloos avatar Ian Chaizir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.