Ebay Api Get User Token
Requirements
- Hkonnet\LaravelEbay\Ebay
- DTS\eBaySDK
Here is the steps to get access to list of ebay account
-
You need to create developer account in ebay. https://developer.ebay.com
-
Create a sandbox and production application a. you will have to store the addID and CertID and RuleName in your ENV file b. don't forget to create under your application (Get a Token from eBay via Your Application) c. add a redirect url for Your auth accepted URL
- the url redirect will be a get method to receive the code of the user authorize
-
getUserCode() once it's called it should take the user to login of ebay followed by Grant Application Access. Once the user accept, it will take it back to the redirect url you assign to it in the application. From there
-
With the authorization code that you get from ebay you call the function getEbayUserToken(), of course you need to pass the code somehow let say from the database that you stored earlier in the first function getUserCode. a. From that request ebay will get you a response type of json with the User Token.
-
Last just call the function import a. by passing the token code given by ebay b. here is your active listing
-
added a function to update the token of selected user updateToken() if the existant token got expired
-
Get images for each product using the item ID will return an XML with images bigger size then getMySellingEbay function called getImagesProduct()
Charbel Mhanna