Help for developer of PlugUnplug

Overview

With this API, you can access from your website or your extranet to all the data of PlugUnplug. You can create new contacts, modify stock of products, access to stats and more over...
For now 2 versions of the API, that you can download :

Install and download

First download the zip file of the API :

Install for PHP

Unzip PuP_API.zip, and place the folder pup_api in a good directory of your website. It's all, you must just include the file PuP.php

Install for Java

Soon available

API Reference

The API is not complete for now !!!
PlugUnplug API reference

Sample

// include juste one file
include("pup_api/PuP.php") ;

// login and pass from a user, must be called before all other functions
PuP_Connection()::_()->connect("mylogin", "mypass") ;

// insert a new contact
PuP_Contacts->newContact(new PuP_Z_Contact(array(
	"co_firstname"=>"André",
	"co_name"=>"Durand",
	"co_city"=>"Marseille"
))) ;

// load all products in an array
$rows = PuP_Products::_()->loadProducts() ;
foreach($rows as $row) {
	echo $row->pr_name."<br/>" ;
}