PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Dmitry Mamontov   Gollos Rest API Client   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Gollos Rest API Client
Manage e-commerce operations using the Gollos API
Author: By
Last change: Update of example.php
Date: 10 months ago
Size: 461 bytes
 

Contents

Class file image Download
<?
require 'GollosRestApi.php';

//Getting information about the leads
$gollos = new GollosRestApi($key, $secretKey);
$order = $gollos->getOrders(array('id' => 25648));

//Creating a client
$gollos = new GollosRestApi($key, $secretKey);
$customer = array(
   
'first_name' => 'Test',
   
'last_name' => 'Test',
   
'username' => 'dtest',
   
'password' => uniqid(),
   
'ip' => '85.198.127.82'
);
$result = $gollos->addCustomers($customer);
?>