PHP Classes
elePHPant
Icontem

Moy Sklad Rest Api: Manage sales accounts of Moy Sklad using its API

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-10-27 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 73 All time: 9,171 This week: 429Up
Version License PHP version Categories
ms-restapi 1.0.1BSD License5.3.3PHP 5, E-Commerce, Web services
Description Author
This package is specific mainly for applications used in Russian Federation Russian Federation .

This class can manage sales accounts of Moy Sklad using its API.

It can send HTTP requests to the Moy Sklad API Web server authenticated as a given authorized user to perform several types of operations.

Currently it can create, get, delete and update measurement units, goods, folders, services, warehouses, companies, people contacts, employees, countries, consignments, currencies, processing plans, contracts, projects, GTD, things, losses, custom entities, supplies, demand, sales returns, purchases, orders, processing tasks, moves, inventory items, cash-in, cash-out, payments in, payments out, retail demand, retail sales returns, and workflows.

  Performance   Level  
Name: Dmitry Mamontov <contact>
Classes: 12 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 4x

Details

Latest Stable Version License Total Downloads

Moy Sklad API Client

This class can Manage accounts of Moy Sklad using its REST API.

It can obtain an authorization password for a given account, so it can send HTTP requests to the Moy Sklad Rest API in order to perform several types of operations.

Requirements

  • PHP version >5.0
  • curl

Installation

1) Install composer

2) Follow in the project folder:

composer require dmamontov/ms-restapi ~1.1.2

In config composer.json your project will be added to the library dmamontov/ms-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

Get unit of measurement.

$ms = new MSRestApi('admin@xxxx.ru', 'xxxxxxxxxx');

$uuid = '7e4b5318-44df-11e5-7a07-673d0083fdac';
$uomGet = $ms->uomGet($uuid);

Creating unit of measurement

$ms = new MSRestApi('admin@xxxx.ru', 'xxxxxxxxxx');

$headerXml = '<?xml version="1.0" encoding="UTF-8"?><%s/>';

$newUom = new SimpleXMLElement(
                  sprintf($headerXml, 'uom'),
                  LIBXML_NOENT | LIBXML_NOCDATA |
                  LIBXML_COMPACT | LIBXML_PARSEHUGE
          );

$newUom->addAttribute('favourite', 'false');
$newUom->addAttribute('name', 'example');
$newUom->addChild('code', '999');
$newUom->addChild('externalcode', '999');
$newUom->addChild('description', 'Example 999');

$uomCreate = $ms->uomCreate($newUom);

Available methods

References

  • uomGet
  • uomCreate
  • uomDelete
  • uomGetList
  • uomUpdateList
  • goodGet
  • goodCreate
  • goodDelete
  • goodGetList
  • goodUpdateList
  • goodDeleteList
  • goodFolderGet
  • goodFolderCreate
  • goodFolderDelete
  • goodFolderGetList
  • goodFolderUpdateList
  • goodFolderDeleteList
  • serviceGet
  • serviceCreate
  • serviceDelete
  • serviceGetList
  • serviceUpdateList
  • serviceDeleteList
  • warehouseGet
  • warehouseCreate
  • warehouseDelete
  • warehouseGetList
  • warehouseUpdateList
  • warehouseDeleteList
  • companyGet
  • companyCreate
  • companyDelete
  • companyGetList
  • companyUpdateList
  • companyDeleteList
  • myCompanyGet
  • myCompanyCreate
  • myCompanyDelete
  • myCompanyGetList
  • myCompanyUpdateList
  • myCompanyDeleteList
  • personGet
  • personCreate
  • personDelete
  • personGetList
  • personUpdateList
  • personDeleteList
  • employeeGet
  • employeeCreate
  • employeeDelete
  • employeeGetList
  • employeeUpdateList
  • employeeDeleteList
  • countryGet
  • countryCreate
  • countryDelete
  • countryGetList
  • countryUpdateList
  • countryDeleteList
  • consignmentGet
  • consignmentCreate
  • consignmentDelete
  • consignmentGetList
  • consignmentUpdateList
  • consignmentDeleteList
  • currencyGet
  • currencyCreate
  • currencyDelete
  • currencyGetList
  • currencyUpdateList
  • currencyDeleteList
  • processingPlanFolderGet
  • processingPlanFolderCreate
  • processingPlanFolderDelete
  • processingPlanFolderGetList
  • processingPlanFolderUpdateList
  • processingPlanFolderDeleteList
  • processingPlanGet
  • processingPlanCreate
  • processingPlanDelete
  • processingPlanGetList
  • processingPlanUpdateList
  • processingPlanDeleteList
  • contractGet
  • contractCreate
  • contractDelete
  • contractGetList
  • contractUpdateList
  • contractDeleteList
  • projectGet
  • projectCreate
  • projectDelete
  • projectGetList
  • projectUpdateList
  • projectDeleteList
  • gtdGet
  • gtdCreate
  • gtdDelete
  • gtdGetList
  • gtdUpdateList
  • gtdDeleteList
  • thingGet
  • thingCreate
  • thingDelete
  • thingGetList
  • thingUpdateList
  • thingDeleteList
  • lossReasonGet
  • lossReasonCreate
  • lossReasonDelete
  • lossReasonGetList
  • lossReasonUpdateList
  • lossReasonDeleteList
  • enterReasonGet
  • enterReasonCreate
  • enterReasonDelete
  • enterReasonGetList
  • enterReasonUpdateList
  • enterReasonDeleteList
  • customEntityGet
  • customEntityCreate
  • customEntityDelete
  • customEntityGetList
  • customEntityUpdateList
  • customEntityDeleteList
  • workflowGet
  • workflowCreate
  • workflowDelete
  • workflowGetList
  • workflowUpdateList

Documentation

  • supplyGet
  • supplyCreate
  • supplyDelete
  • supplyGetList
  • supplyUpdateList
  • supplyDeleteList
  • demandGet
  • demandCreate
  • demandDelete
  • demandGetList
  • demandUpdateList
  • demandDeleteList
  • lossGet
  • lossCreate
  • lossDelete
  • lossGetList
  • lossUpdateList
  • lossDeleteList
  • enterGet
  • enterCreate
  • enterDelete
  • enterGetList
  • enterUpdateList
  • enterDeleteList
  • salesReturnGet
  • salesReturnCreate
  • salesReturnDelete
  • salesReturnGetList
  • salesReturnUpdateList
  • salesReturnDeleteList
  • purchaseReturnGet
  • purchaseReturnCreate
  • purchaseReturnDelete
  • purchaseReturnGetList
  • purchaseReturnUpdateList
  • purchaseReturnDeleteList
  • customerOrderGet
  • customerOrderCreate
  • customerOrderDelete
  • customerOrderGetList
  • customerOrderUpdateList
  • customerOrderDeleteList
  • purchaseOrderGet
  • purchaseOrderCreate
  • purchaseOrderDelete
  • purchaseOrderGetList
  • purchaseOrderUpdateList
  • purchaseOrderDeleteList
  • internalOrderGet
  • internalOrderCreate
  • internalOrderDelete
  • internalOrderGetList
  • internalOrderUpdateList
  • internalOrderDeleteList
  • processingOrderGet
  • processingOrderCreate
  • processingOrderDelete
  • processingOrderGetList
  • processingOrderUpdateList
  • processingOrderDeleteList
  • processingGet
  • processingCreate
  • processingDelete
  • processingGetList
  • processingUpdateList
  • processingDeleteList
  • moveGet
  • moveCreate
  • moveDelete
  • moveGetList
  • moveUpdateList
  • moveDeleteList
  • inventoryGet
  • inventoryCreate
  • inventoryDelete
  • inventoryGetList
  • inventoryUpdateList
  • inventoryDeleteList
  • cashInGet
  • cashInCreate
  • cashInDelete
  • cashInGetList
  • cashInUpdateList
  • cashInDeleteList
  • cashOutGet
  • cashOutCreate
  • cashOutDelete
  • cashOutGetList
  • cashOutUpdateList
  • cashOutDeleteList
  • paymentInGet
  • paymentInCreate
  • paymentInDelete
  • paymentInGetList
  • paymentInUpdateList
  • paymentInDeleteList
  • paymentOutGet
  • paymentOutCreate
  • paymentOutDelete
  • paymentOutGetList
  • paymentOutUpdateList
  • paymentOutDeleteList
  • retailDemandGet
  • retailDemandCreate
  • retailDemandDelete
  • retailDemandGetList
  • retailDemandUpdateList
  • retailDemandDeleteList
  • retailSalesReturnGet
  • retailSalesReturnCreate
  • retailSalesReturnDelete
  • retailSalesReturnGetList
  • retailSalesReturnUpdateList
  • retailSalesReturnDeleteList
  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
Accessible without login Plain text file LICENSE Lic. License text
Plain text file MSRestApi.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:73
This week:0
All time:9,171
This week:429Up