macropage / sdk-ebay-rest-account
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
Installs: 2 917
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-11-23 03:33:00 UTC
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 restrictions and availability of the methods in this API, see <a href="/api-docs/sell/account/overview.html#acct-restrictions">API restrictions.
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: v1.3.0
- Package version: 2.3.2
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/macropage/sdk-ebay-rest-account.git"
}
],
"require": {
"macropage/sdk-ebay-rest-account": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/sdk-ebay-rest-account/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
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 = macropage\SDKs\ebay\rest\account\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new macropage\SDKs\ebay\rest\account\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 ); $fulfillmentPolicyRequest = new \macropage\SDKs\ebay\rest\account\Model\FulfillmentPolicyRequest(); // \macropage\SDKs\ebay\rest\account\Model\FulfillmentPolicyRequest | Request to create a seller account fulfillment policy. try { $result = $apiInstance->createFulfillmentPolicy($fulfillmentPolicyRequest); print_r($result); } catch (Exception $e) { echo 'Exception when calling FulfillmentPolicyApi->createFulfillmentPolicy: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://api.ebay.com/sell/account/v1
Documentation For Models
- Amount
- CategoryType
- Deposit
- Error
- ErrorParameter
- FulfillmentPolicy
- FulfillmentPolicyRequest
- FulfillmentPolicyResponse
- InlineResponse400
- InternationalReturnOverrideType
- PaymentMethod
- PaymentPolicy
- PaymentPolicyRequest
- PaymentPolicyResponse
- PaymentsProgramResponse
- Program
- Programs
- RateTable
- RateTableResponse
- RecipientAccountReference
- Region
- RegionSet
- ReturnPolicy
- ReturnPolicyRequest
- ReturnPolicyResponse
- SalesTax
- SalesTaxBase
- SalesTaxes
- SellingLimit
- SellingPrivileges
- SetFulfillmentPolicyResponse
- SetPaymentPolicyResponse
- SetReturnPolicyResponse
- ShippingOption
- ShippingService
- TimeDuration
Documentation For 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