mavericks-lab / ebay-legacy by maverickslab

This package is a layer over eBay's trading api to make interaction with eBay easier
259
2
3
Package Data
Maintainer Username: maverickslab
Maintainer Contact: albert@syncommerceapp.com (Albert Fiati-Kumasenu)
Package Create Date: 2017-05-02
Package Last Update: 2018-10-22
Language: PHP
License: MIT
Last Refreshed: 2024-04-25 15:01:53
Package Statistics
Total Downloads: 259
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 1
Total Open Issues: 1

eBay Trading API Package for Laravel 5.4

###Requirements ####Cloudinary In order to use this package for listing products to eBay, you need to create a cloudinary account.

Dependencies

  1. Php ^5.3.3 || ^7.0
  2. guzzlehttp/guzzle ^6.2
  3. cloudinary/cloudinary_php ^1.7

Set up

  1. run composer require maverickslab/ebay-legacy
  2. run php artisan vendor:publish
  3. edit your configuration files "config/ebay.php"

Authenticating

To authorize your app to make requests to eBay on behalf of the merchant, you need to go though the authentication flow. Set up an app on the eBay developer portal.

  1. Set your accepted url to an endpoint on your app to receive the token. The default route on the package is ..yourdomain/ebay/authorized. You can extend the EbayController and override the authorized method to handle the token response.
  2. Set your declined/rejected url to an endpoint on your app to receive the token. The default route on the package is ..yourdomain/ebay/declined. You can extend the EbayController and override the declined method to handle the token response.

Make a request to ...yourdomain/ebay/install to test installation flow.

Making requests

In order to make requests, you have to make sure you have provided the required params in the ebay.php file in your config directory. To do this, copy and paste this in your .env file and make the necessary changes

EBAY_COMPATIBILITY_LEVEL=951 EBAY_RUNAME=XXXXXXXXX EBAY_API_APP_NAME=XXXXXXXXX EBAY_API_CERT_NAME=XXXXXXXXX EBAY_API_DEV_NAME=XXXXXXXXX EBAY_SIGN_IN_URL=https://signin.sandbox.ebay EBAY_BASE_URL=https://api.sandbox.ebay.com/ws/api.dll EBAY_WARNING_LEVEL=High EBAY_ERROR_LANGUAGE=en_US EBAY_USER_TOKEN=XXXXXXXXX

Request methods

Features

  1. Authenticating with eBay
  2. Import products from eBay
  3. Create listings on eBay
  4. Import orders on eBay
  5. Update orders on eBay