davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
350 stars 343 forks source link

User authorization #74

Closed dennisdup closed 7 years ago

dennisdup commented 7 years ago

Is it possible to authorize ebay user with this SDK, get access token and use it to get details of that user account ?

davidtsadler commented 7 years ago

It depends on which authorisation your project needs. If you want an Auth'n'auth token for use with the Trading service then this will be possible with the SDK. The API provides the two operations GetSessionID and FetchToken which you can call with the SDK.

If you are looking to use an OAuth token for the new RESTful APIs you are going to have to go outside the SDK as it's currently not supported. There has been some discussion over at https://groups.google.com/d/msg/ebay-sdk-php/JUHcEtdD9gg/inND9c5MDQAJ which may be of use.

I'm looking at seeing if I can add something to the SDK that would make it easier to get the OAuth token but I don't have an ETA yet.

dennisdup commented 7 years ago

Alright, seems i have to do it then. Could you please then assist with this error i am having: error .

davidtsadler commented 7 years ago

Sure :)

davidtsadler commented 7 years ago

I'm going to close this as I aim to address this issue in #75.

ediceapi commented 5 years ago

New OAUTH2 functions of this API are working. I am able to get an OAUTH Token and a Refres OAUTH User token using API. However, It is not clear to me how to use these for BULK Data exchange APIs - Or if it is even possible to use AUTH2 with Bulk Data Exchange API functions.

michabbb commented 5 years ago

@ediceapi read the docs debug the code, use the regular ebay forum.

https://developer.ebay.com/api-docs/static/oauth-trad-apis.html