MIT license


The MIT license is an
open-source license.
Free Read License

14 Day money-back guarantee

Full refund within 14 days of purchase date.

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.

  • Released: Mar 11, 2012
    Last Update: Apr 30, 2012
  • Language: PHP
  • Category: System & Frameworks
  • Time / costs savings: 2h / $120 *
(2 ratings)

Binpress API PHP Wrapper

Binpress API PHP Wrapper
Developed by Lionite, Released Mar 11, 2012

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

PHP

Tags: api , binpress , wrapper

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+
Back to top

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.

View all 1 reviews »

User Reviews

  • Kerasiotis Vasileios 1 year ago
    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.
    Flag
    Was this helpful? Yes No

Questions & Comments


Or enter your name and Email
No comments have been posted yet.
You must be logged-in to vote. Log-in to your account or register now.