PHP Classes

Gollos Rest API Client: Manage e-commerce operations using the Gollos API

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-10 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 148 All time: 9,108 This week: 455Up
Version License PHP version Categories
gollosrestapi 1.0.11BSD License5.0PHP 5, E-Commerce, Web services
Description 

Author

This class can eanage e-commerce operations using the Gollos API.

It can send HTTP requests to the Gollos API Web server to perform several types of operations with customers, vendors, products, orders, etc..

Currently it can retrieve, add, update and delete products, groups, customers, vendors, products and orders.

Picture of Dmitry Mamontov
  Performance   Level  
Name: Dmitry Mamontov <contact>
Classes: 16 packages by
Country: Russian Federation Russian Federation
Age: 33
All time rank: 77925 in Russian Federation Russian Federation
Week rank: 215 Up12 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 6x

Example

<?
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);
?>


Details

Latest Stable Version License Total Downloads

Gollos Rest API Client

This class can eanage e-commerce operations using the Gollos API.

It can send HTTP requests to the Gollos API Web server to perform several types of operations with customers, vendors, products, orders, etc..

Currently it can retrieve, add, update and delete products, groups, customers, vendors, products and orders.

Requirements

  • PHP version >5.0
  • curl

Available methods

  • `getProducts`, `addProducts`, `updateProducts`, `removeProducts`
  • `getGroups`, `addGroups`, `updateGroups`, `removeGroups`
  • `getVendors`, `addVendors`, `updateVendors`, `removeVendors`
  • `getCustomers`, `addCustomers`, `updateCustomers`, `removeCustomers`
  • `getOrders`, `removeOrders`

Installation

1) Install composer

2) Follow in the project folder:

composer require dmamontov/gollos-restapi ~1.0.0

In config composer.json your project will be added to the library dmamontov/gollos-restapi, who settled in the folder vendor/. In the absence of a config file or folder with vendors they will be created.

If before your project is not used composer, connect the startup file vendors. To do this, enter the code in the project:

require 'path/to/vendor/autoload.php';

Examples of use

Getting information about the order

$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);

  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file example.php Example Example script
Plain text file GollosRestApi.php Class Class source
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:148
This week:0
All time:9,108
This week:455Up
User Comments (1)