cdma-numiscorner/ebay-account-api
Composer 安装命令:
composer require cdma-numiscorner/ebay-account-api
包简介
The <b>Account API</b> gives sellers the ability to configure their eBay seller accounts, including the seller's policies (the Fulfillment Policy, Payment Policy, and Return Policy), opt in and out of eBay seller programs, configure sales tax tables, and get account information. <br><br>For details
README 文档
README
The Account API gives sellers the ability to configure their eBay seller accounts, including the seller's policies (the Fulfillment Policy, Payment Policy, and Return Policy), opt in and out of eBay seller programs, configure sales tax tables, and get account information.
For details on the availability of the methods in this API, see <a href="/api-docs/sell/account/overview.html#requirements">Account API requirements and restrictions.
Installation & Usage
Requirements
PHP 7.2 and later.
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/cdma-numiscorner/EbayAccountApi.git"
}
],
"require": {
"cdma-numiscorner/EbayAccountApi": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: api_auth $config = OpenAPI\EbayAccountClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OpenAPI\EbayAccountClient\Api\FulfillmentPolicyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $fulfillment_policy_request = new \OpenAPI\EbayAccountClient\Model\FulfillmentPolicyRequest(); // \OpenAPI\EbayAccountClient\Model\FulfillmentPolicyRequest | Request to create a seller account fulfillment policy. try { $result = $apiInstance->createFulfillmentPolicy($fulfillment_policy_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling FulfillmentPolicyApi->createFulfillmentPolicy: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://api.ebay.com/sell/account/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| FulfillmentPolicyApi | createFulfillmentPolicy | POST /fulfillment_policy | |
| FulfillmentPolicyApi | deleteFulfillmentPolicy | DELETE /fulfillment_policy/{fulfillmentPolicyId} | |
| FulfillmentPolicyApi | getFulfillmentPolicies | GET /fulfillment_policy | |
| FulfillmentPolicyApi | getFulfillmentPolicy | GET /fulfillment_policy/{fulfillmentPolicyId} | |
| FulfillmentPolicyApi | getFulfillmentPolicyByName | GET /fulfillment_policy/get_by_policy_name | |
| FulfillmentPolicyApi | updateFulfillmentPolicy | PUT /fulfillment_policy/{fulfillmentPolicyId} | |
| KycApi | getKYC | GET /kyc | |
| OnboardingApi | getPaymentsProgramOnboarding | GET /payments_program/{marketplace_id}/{payments_program_type}/onboarding | |
| PaymentPolicyApi | createPaymentPolicy | POST /payment_policy | |
| PaymentPolicyApi | deletePaymentPolicy | DELETE /payment_policy/{payment_policy_id} | |
| PaymentPolicyApi | getPaymentPolicies | GET /payment_policy | |
| PaymentPolicyApi | getPaymentPolicy | GET /payment_policy/{payment_policy_id} | |
| PaymentPolicyApi | getPaymentPolicyByName | GET /payment_policy/get_by_policy_name | |
| PaymentPolicyApi | updatePaymentPolicy | PUT /payment_policy/{payment_policy_id} | |
| PaymentsProgramApi | getPaymentsProgram | GET /payments_program/{marketplace_id}/{payments_program_type} | |
| PrivilegeApi | getPrivileges | GET /privilege | |
| ProgramApi | getOptedInPrograms | GET /program/get_opted_in_programs | |
| ProgramApi | optInToProgram | POST /program/opt_in | |
| ProgramApi | optOutOfProgram | POST /program/opt_out | |
| RateTableApi | getRateTables | GET /rate_table | |
| ReturnPolicyApi | createReturnPolicy | POST /return_policy | |
| ReturnPolicyApi | deleteReturnPolicy | DELETE /return_policy/{return_policy_id} | |
| ReturnPolicyApi | getReturnPolicies | GET /return_policy | |
| ReturnPolicyApi | getReturnPolicy | GET /return_policy/{return_policy_id} | |
| ReturnPolicyApi | getReturnPolicyByName | GET /return_policy/get_by_policy_name | |
| ReturnPolicyApi | updateReturnPolicy | PUT /return_policy/{return_policy_id} | |
| SalesTaxApi | createOrReplaceSalesTax | PUT /sales_tax/{countryCode}/{jurisdictionId} | |
| SalesTaxApi | deleteSalesTax | DELETE /sales_tax/{countryCode}/{jurisdictionId} | |
| SalesTaxApi | getSalesTax | GET /sales_tax/{countryCode}/{jurisdictionId} | |
| SalesTaxApi | getSalesTaxes | GET /sales_tax |
Models
- Amount
- CategoryType
- Deposit
- Error
- ErrorParameter
- FulfillmentPolicy
- FulfillmentPolicyRequest
- FulfillmentPolicyResponse
- InternationalReturnOverrideType
- KycCheck
- KycResponse
- PaymentMethod
- PaymentPolicy
- PaymentPolicyRequest
- PaymentPolicyResponse
- PaymentsProgramOnboardingResponse
- PaymentsProgramOnboardingSteps
- PaymentsProgramResponse
- Program
- Programs
- RateTable
- RateTableResponse
- RecipientAccountReference
- Region
- RegionSet
- ReturnPolicy
- ReturnPolicyRequest
- ReturnPolicyResponse
- SalesTax
- SalesTaxBase
- SalesTaxes
- SellingLimit
- SellingPrivileges
- SetFulfillmentPolicyResponse
- SetPaymentPolicyResponse
- SetReturnPolicyResponse
- ShippingOption
- ShippingService
- TimeDuration
Authorization
api_auth
- Type:
OAuth - Flow:
accessCode - Authorization URL:
https://auth.ebay.com/oauth2/authorize - Scopes:
- https://api.ebay.com/oauth/api_scope/sell.account.readonly: View your account settings
- https://api.ebay.com/oauth/api_scope/sell.account: View and manage your account settings
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
v1.6.0- Package version:
1.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen
cdma-numiscorner/ebay-account-api 适用场景与选型建议
cdma-numiscorner/ebay-account-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.75k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 12 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「rest」 「api」 「sdk」 「openapi」 「openapitools」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cdma-numiscorner/ebay-account-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cdma-numiscorner/ebay-account-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cdma-numiscorner/ebay-account-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
BlockCypher's PHP SDK for REST API
Helper classes for creating cookie headers
统计信息
- 总下载量: 1.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: unlicense
- 更新时间: 2020-12-30