Skip to content

Latest commit

 

History

History
75 lines (58 loc) · 2.23 KB

README.md

File metadata and controls

75 lines (58 loc) · 2.23 KB

TecDoc API

Source Code Software License Total Downloads

gerfey/tecdoc-client - client for working with the TecDoc API, designed to run on Laravel.

Installation

The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require gerfey/tecdoc-client

Settings

  1. Use command php artisan vendor:publish and select tag: tecdoc
  2. Check files tecdoc.php to path .../laravel-project/config/
  3. Create the TECDOC_PROVIDER_ID, TECDOC_API_KEY, TECDOC_LANGUAGE_CODE keys in the file .env

Run

<?php

$tecDoc = new \Gerfey\TecDoc\Request\Pegasus\Pegasus_3_0(new \Gerfey\TecDoc\Http\TecDocClient());
dd($tecDoc->getAmBrands()->getJson());

Result

{#1821
  +"data": {#1820
    +"array": array:142 [
      0 => {#1685
        +"brandId": 1
        +"brandLogoID": "100000"
        +"brandName": "SPIDAN"
      }
      1 => {#1677
        +"brandId": 2
        +"brandLogoID": "200001"
        +"brandName": "HELLA"
      }
      ...
    ]
  }
  +"status": 200
}

Copyright and License

The gerfey/tecdoc-client library is copyright © Alexander Levchenkov and licensed for use under the MIT License (MIT). Please see LICENSE for more information.