2017 © Pedro Peláez
 

library api3intime

API InTime 3 version

image

jackmartin/api3intime

API InTime 3 version

  • Saturday, July 14, 2018
  • by jackmartin
  • Repository
  • 1 Watchers
  • 1 Stars
  • 101 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 153 % Grown

The README.md

Описание

Latest Stable Version Total Downloads License, (*1)

PHP класс для работы с почтой Intime, (*2)

Документация

Інструкція по інтеграції з веб- сервісами Ін-Тайм. API 3.1, (*3)

Требование

  • PHP не ниже 7.0
  • Composer

Composer

composer require jackmartin/api3intime

Библиотеки

  1. Soap-Guzzle

Методы API

  1. Настройка подключения
  2. Получить список стран
  3. Получить информацию о стране по ID
  4. Получить список областей
  5. Получить информацию о областе по ID
  6. Получить список областей по фильтру
  7. Получить список районов
  8. Получить информацию о районе по ID
  9. Получить список районов по фильтру
  10. Получение список населенных пунктов
  11. Получить информацию о населенным пункте по ID
  12. Получить список населенных пунктов по фильтру
  13. Получение список складов / почтоматов
  14. Получить информацию о складе / почтомате по ID
  15. Получить список складов / почтоматов по фильтру
  16. Получить список описаний груза
  17. Получить описание груза по ID
  18. Получить список упаковок
  19. Получить упаковку по ID
  20. Создать заявку ТТН
  21. Получить список графика работы складов
  22. Получить график работы склада по ID
  23. Получить список историй ТТН
  24. Получить информацию ТТН

Пример

__construct()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); // $intime = new InTime3('API_KEY', true, false, 30, 30); // $intime = new InTime3('API_KEY', true, false);

getCountryList()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); //$intime = new InTime3('API_KEY', false); print data stdclass format //$intime = new InTime3('API_KEY', false, true); debug mode print_r($intime->getCountryList()); //{"Entry_get_country_by_id":[{"id":"213","name_ua":"УЕЛЬС","name_en":"WALES","name_ru":"УЭЛЬС","short_name_ua":"УЕЛЬС","short_name_en":"WALES","short_name_ru":"УЭЛЬС","code":"000000213","last_change":"2017-08-30T21:04:00.000+03:00","status":"1"},{"id":"214","name_ua":"УЗБЕКИСТАН","name_en":"UZBEKISTAN","name_ru":"УЗБЕКИСТАН","short_name_ua":"УЗБЕКИСТАН","short_name_en":"UZBEKISTAN","short_name_ru":"УЗБЕКИСТАН","code":"000000214","last_change":"2017-05-11T21:10:00.000+03:00","status":"1"}

getCountryId($id)



use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getCountryId(213));

getAreaList()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getAreaList());

getAreaId($id)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getAreaId(1));

getAreaFilter($data = array())


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getAreaFilter(array( // 'id' => 1, 'area_name' => 'В', // 'country_id' => '215', )));

getDistrictList()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getDistrictList());

getDistrictId($id)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getDistrictId(241));

getDistrictFilter($data = array())


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getDistrictFilter(array( // 'id' => '241', // 'country_id' => '215', 'district_name' => 'Бере', )));

getLocalityList()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_key'); print_r($intime->getLocalityList());

getLocalityId($id)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getLocalityId(100));

getLocalityFilter($data = array())


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getLocalityFilter(array( // 'id' => 328, // 'country_id' => 215, // 'area_id' => 14, 'district_id' => 416, // 'locality_name' => 'Сково', )));

getBranchList()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getBranchList());

getBranchId($id)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getBranchId(328));

getBranchFilter($data = array())


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getBranchFilter(array( // 'id' => 328, // 'country_id' => 215, // 'area_id' => 15, // 'district_id' => 40, // 'locality_id' => 39, 'branch_name' => 'Воло', )));

getGoodsDescList()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getGoodsDescList());

getGoodsDescId($id)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getGoodsDescList());

getBoxList()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getBoxList());

getBoxId($id)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getBoxId(50));

declarationCreate($data = array())


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r( $intime->declarationCreate( [ ... ] ) );

getBranchWorkList()


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getBranchWorkList());

getBranchWorkId($id)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getBranchWorkId(200));

declStatus($number)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->declStatus('NUMBER_TTN'));

getTTN($number)


use InTime\InTime3; include_once 'vendor/autoload.php'; $intime = new InTime3('API_KEY'); print_r($intime->getTTN('NUMBER_TTN'));

The Versions

14/07 2018

dev-1.1-fix

dev-1.1-fix

API InTime 3 version

  Sources   Download

MIT

The Requires

 

by Jack Martin

25/10 2017

dev-master

9999999-dev

API InTime 3 version

  Sources   Download

MIT

The Requires

 

by Jack Martin

25/10 2017

v1.1

1.1.0.0

API InTime 3 version

  Sources   Download

MIT

The Requires

 

by Jack Martin

13/10 2017

v1.0

1.0.0.0

API InTime 3 version

  Sources   Download

MIT

The Requires

 

by Jack Martin