PHP code example of ertanusta / trendyol-api-bundle

1. Go to this page and download the library: Download ertanusta/trendyol-api-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ertanusta / trendyol-api-bundle example snippets


// config/bundles.php

return [
    // ...
    Trendyol\ApiBundle\TrendyolApiBundle::class => ['all' => true],
];

    /**
     * @Route("/", name="index")
     */
    public function method(CargoService $service)
    {
        $result = $service->getSuppliersAddresses();
    }

    /**
     * @Route("/", name="index")
     */
    public function index(CargoService $service)
    {
        $service->setIntegrator("12345");
        $service->setAppSecret("app_key");
        $service->setAppKey("app_secret");
        $service->setSellerId("12345");
        $result = $service->getSuppliersAddresses();
    }