E-bay component provides a possibility to interact with eBay API.
Note: Currently only Buying Feed API is accessible.
The component uses API provided by eBay. Under the hood it works with REST requests to that API.
You need the following values in your request for an Application token:
RuName
.For details, see Specifying OAuth scopes.
Note: While Buying Feed API is the only possible option, the following value will be automatically pointed as a scope:
https://api.ebay.com/oauth/api_scope/buy.item.feed
.
These values should be saved before the credentials verification process.
Name | Description |
Environment | The type of the environment. Should be chosen between Sandbox and Production. |
Redirect URI | It is the RuName parameter. See above. |
Client ID | OAuth credentials. |
Client Secret | OAuth credentials. |
This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.
getItemFeed
call to retrieve a daily TSV_GZIP Item feed file. This file contains all the items listed on a specific day and category. Each item is in new condition, offer at a fixed price (Buy It Now); no auctions, and from eBay trusted sellers.Output data in few actions is a binary data as it may have large size. So responding with a binary output data is not a good idea as it may consume too much resources to process. This is why data in actions
is storing and transferred as an attachment.
The data in that actions mentioned above has the next format:
{
"body": {
"responseCode": "0",
"responseAttachmentUrl": "http://attachment_url"
},
"attachments": {
"response": {
"content-type": "text/plain",
"url": "http://attachment_url"
}
}
}
Where responseCode
is a code of the processing result:
So in order to retrieve an info you can get an URL with a code like this:
String url = parameters.getMessage().getAttachments().getJsonObject("response").getString("url");
And get a data from that url with a normal HTTP Get request.
Click here to learn more about the elastic.io iPaaS