Binpress API PHP Wrapper

Binpress API PHP Wrapper

Released 3 years ago , Last update 3 years ago

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

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+
5.0
  • 5 2
  • 4 0
  • 3 0
  • 2 0
  • 1 0
2 Reviews Read Reviews

Pricing

FREE

MIT license

The MIT license is an open-source license.

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.

License » MIT license Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


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