Binpress API PHP Wrapper

Binpress API PHP Wrapper

A wrapper PHP class for getting started quickly with the Binpress API. Includes examples and detailed documentation of each method.

  • Language: PHP
  • Released: Mar 11, 2012
    Last Update: Apr 30, 2012

The Binpress API provides access to Binpress components data. This data can be used to create interesting applications and plug-ins, such as:

  • Wordpress component widget plug-in (the API has more control over the data than the embeddable widget)
  • Integration of component data in blog posts
  • Binpress component store front for various platforms (such as Drupal, Magento, etc)

Requirements

  • PHP 5+
Hide

Usage

Place the contents of the /library folder where you keep your library files. It includes the Zend_Json classes to allow JSON object decoding/encoding when using PHP version below 5.2 (which introduced the json_encode() / json_decode() functions).

If you already use the Zend Framework, you can remove the /Zend folder and just put BinpressAPI.php class in your library folder.

Usage is simple and every use-case is shown in the examples. Include the class, instance a BinpressAPI object and call the API method you want to use.

Example fetching component listing:

<?php
require_once('/library/BinpressAPI.php');

$api = new BinpressAPI();
$components = $api -> getList(array(
    'language' => 'php',
    'limit' => 5,
    'page' => 2
));

For authenticated requests (publisher data), you need to put your API secret and key in the appropriately named class members $_secret and $_key. You can find API access credentials in your publisher account.

For more information on the various parameters each API method uses, visit the API reference.

You need to log-in or create an account
  • Create an account
  • Log-in

Please use your real name.

Activation link will be sent to this address.

Minimum 8 characters

Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

X

Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

License » MIT license Download
  • Great component using a framework like Zend which is so widely used by many people. Already used it in one project and planning to use it on another one too.
    KV Kerasiotis Vasileios
    2 years ago, 0 comments
    Was this helpful?
    Flag
Post a comment

Or enter your name and Email
No comments have been posted yet.