tims/flipkart-seller-api-php
Composer 安装命令:
composer require tims/flipkart-seller-api-php
包简介
PHP client for Flipkart Seller APIs
README 文档
README
PHP client for Flipkart Seller APIs. Ported from the Java SDK.
Requires PHP 8.2+, ext-json, and Guzzle 7.
composer require tims/flipkart-seller-api-php
Usage
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');
For third-party OAuth, pass redirectUrl, state, and authCode into fromCredentials().
You can also build an ApiClient yourself:
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([/* ... */]);
API classes under Flipkart\SellerApi\Api\ match the Java SDK (ListingsCommonV3Api, OrdersV2Api, ShipmentV3Api, etc.). Methods return decoded JSON arrays, or raw strings for PDFs and other binary responses.
- Sandbox:
https://sandbox-api.flipkart.net/sellers - Production:
https://api.flipkart.net/sellers
Get credentials from Flipkart Seller Developer Admin.
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-14