PHP code example of tims / flipkart-seller-api-php
1. Go to this page and download the library: Download tims/flipkart-seller-api-php 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/ */
tims / flipkart-seller-api-php example snippets
use Flipkart\SellerApi\Environment;
use Flipkart\SellerApi\FlipkartSellerClient;
$fk = FlipkartSellerClient::fromCredentials(
Environment::Sandbox, // or Environment::Prod
getenv('FLIPKART_CLIENT_ID'),
getenv('FLIPKART_CLIENT_SECRET'),
);
$listings = $fk->listingsCommonV3()->getListings('SKU1,SKU2');
use Flipkart\SellerApi\AccessTokenGenerator;
use Flipkart\SellerApi\ApiClient;
use Flipkart\SellerApi\Api\OrdersV2Api;
use Flipkart\SellerApi\Environment;
use Flipkart\SellerApi\UrlConfiguration;
new UrlConfiguration(Environment::Sandbox);
$token = (new AccessTokenGenerator)
->clientCredentials($clientId, $clientSecret)
->getAccessToken();
$client = new ApiClient;
$client->setAccessToken($token);
$orders = new OrdersV2Api($client);
$result = $orders->searchOrderItemRequest([/* ... */]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.