PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-10 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 148 This week: 1All time: 9,101 This week: 560Up
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: 78226 in Russian Federation Russian Federation
Week rank: 51 Up3 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  
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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:148
This week:1
All time:9,101
This week:560Up
User Comments (1)