Open eBay [openebay] Module
This module helps in creating an Open eBay Application via Play! Framework. Learn more about Open eBay application at eBay Developer Network
Getting started with the sample application
A sample application is bundled with this module to get you started quickly. Follow the steps mentioned below to get the application running in eBay Sandbox.
Step 1) Setup the test application locally
clone the openebay module from bitbucket
git clone https://bitbucket.org/kumaresan/openebay.git
go to the test application directory
cd openebay/samples-and-tests/testopenebayapp
resolve dependencies
play dependencies
Step 2) Setup ebay developer accounts
Create an account in eBay Developer Network
Create an account in eBay Sandbox . The Sandbox account will be of the format TESTUSER_your_sandbox_user
Step 3) Setup deployment Descriptor
A deployment descriptor is an XML file that contains open ebay application metadata and deployment preferences. You can find a sample deployment descriptor at testopenebayapp/sampledd/sample-DD.xml
Edit this file and add an application id (say openebay.yourdomain.com). Search for your.application.id in the file. Note that length should be less than 25.
Add the sandbox user id to the permission list. Search and replace TESTUSER_your_sandbox_user with your sandbox user id.
Uploading the deployment descriptor developer.ebay.com under the Embedded Applications Tab
Step 4) Setup the application keys
Keys are unique identifiers that tell eBay which developer and application is making a call. You can generate and retrieve your application keys at eBay Developer Application Keys Page
After uploading the deployment descriptor you will find a set of Sandbox Keys by the name “Play Open eBay Application”. Each set of keys have three components DEVID, AppID and the CertID.
Set your DEVID, AppID and CertID in testopenebayapp/conf/application.conf
openebay.devid=your dev id
openebay.appid=your app id
openebay.certid=your cert id
Step 5) Running the test application locally
go to the test application directory
cd openebay/samples-and-tests/testopenebayapp
start the application
play run
Click this link to check if the application started correctly. Note that this link will show an error saying Invalid Open eBay request. You can ignore this error for now as these URLs are supposed to be called from eBay Gadgets Container.
Step 6) Running the application in eBay Sandbox
Log in to eBay Sandbox with the test user created above. Go To My eBay > Account > Subscription and subscribe to Selling Manager
Now Click on the Applications Tab and select the “PlayOpeneBayApp 1.0.0” from the drop down.
The application should load properly. It will show the list of parameters that were sent from eBay Gadgets Container to this application.