The information in this chapter assumes you have joined the eBay Developers Program and have a keyset. If you haven't done this yet, you can do so on the Quickstart page.
Getting Tokens for Applications with Multiple Users
Your security keys uniquely identify your application. A security token uniquely identifies an eBay member who is using the application. To get a token you provide your application ID (appID) and some additional information to eBay. The eBay member logs into eBay with their eBay user name and password and the member gives their consent to allow your application to act on their behalf. Then eBay sends you the token. In this way, the token uniquely connects the eBay member's user name and password to your appID. If the eBay member also uses other applications, they will have different tokens for each application.
For information about the differences between your eBay Developer username/password, Sandbox test users, and production users, see Creating a Sandbox Test User.
There are two application use models, which differ based on the number of users supported by the application.
The Single User Model is where the application supports only one user. In this model, you need only one token. You can generate a single token for your application's user with the Token Tool. Note: A token is not the same as your user ID and password from the eBay Developer Program. A token must be associated with either the eBay web site (production environment) or the sandbox.
The Solutions Provider Model is where the application supports multiple users. For this you would want to implement the ability to get user tokens directly from within your application. The following sections describe how to configure your application to get tokens for users, how to get tokens that will enable users to make use of your application, how to use tokens, and how to replace them when they expire.
The following tutorial walks you through setting up your application to receive tokens and receiving a token for a user.
Creating Application and User Tokens Tutorial
XML Flow Tutorial: Getting Tokens
Copyright © 2005–2016 eBay Inc. All rights reserved. This documentation and the API may only be used in accordance with the eBay Developers Program and API License Agreement.