Skip to content

Commit 2754f1a

Browse files
Merge pull request #4 from skumaravelayutham/master
Fixed with correct format of marketplace header: EBAY_US instead of EBAY-US
2 parents c73994f + 7e4563b commit 2754f1a

21 files changed

+43
-34
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Change log for Feed SDK which helps to download and filter the item feed files.
66

77
* 1.0.0.beta-RELEASE
88
* [1.0.1.beta-RELEASE](#1.0.1.beta-RELEASE)
9+
* [1.0.2.beta-RELEASE](#1.0.2.beta-RELEASE)
10+
11+
# 1.0.2.beta-RELEASE (2018/10/26)
12+
[Full Changelog](https://github.com/eBay/FeedSDK/compare/1.0.1.beta-RELEASE...1.0.2.beta-RELEASE)
13+
14+
Enhancement Requests:
15+
* Updated the documentation with correct marketplace header format - [\#1](https://github.com/eBay/FeedSDK/issues/2)
16+
917

1018
# 1.0.1.beta-RELEASE (2018/10/10)
1119
[Full Changelog](https://github.com/eBay/FeedSDK/compare/1.0.0.beta-RELEASE...1.0.1.beta-RELEASE)
@@ -17,3 +25,4 @@ Bug Fixes:
1725
Enhancement Requests:
1826
* Added filter support for different environments - [\#1](https://github.com/eBay/FeedSDK/issues/1)
1927

28+

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ The SDK abstracts the complexity involved in calculating the request header '__r
7777
To download a feed file which is -
7878
* __bootstrap__ : (feed_scope = ALL_ACTIVE)
7979
* __L1 category 1__ : (category_id = 1)
80-
* __marketplace US__ : (X-EBAY-C-MARKETPLACE-ID: EBAY-US)
80+
* __marketplace US__ : (X-EBAY-C-MARKETPLACE-ID: EBAY_US)
8181

8282
```
8383
FeedRequest.FeedRequestBuilder builder = new FeedRequestBuilder();
8484
builder.feedScope("ALL_ACTIVE")
8585
.categoryId("1")
86-
.siteId("EBAY-US")
86+
.siteId("EBAY_US")
8787
.token(<TOKEN>)
8888
.type(FeedTypeEnum.ITEM);
8989
@@ -248,7 +248,7 @@ usage: Feed SDK CLI
248248
-scope <arg> the feed scope. Available scopes are
249249
ALL_ACTIVE or NEWLY_LISTED
250250
-mkt <arg> the marketplace id for which feed is
251-
being request. For example - EBAY-US
251+
being request. For example - EBAY_US
252252
-token <arg> the oauth token for the consumer. Omit
253253
the word 'Bearer'
254254
-c2f <arg> list of l2 categories which are used to
@@ -286,12 +286,12 @@ For example, to use the command line options to download, unzip and filter feed
286286

287287
Using token
288288
```
289-
java -jar feed-sdk-1.0.0.beta-RELEASE-uber.jar -dt 20180701 -c1 1281 -scope ALL_ACTIVE -lf 46310 177789 -mkt EBAY-US -c3f 177792 116381 -pricelf 2 -priceuf 100 -locf US CN -token xxx
289+
java -jar feed-sdk-1.0.0.beta-RELEASE-uber.jar -dt 20180701 -c1 1281 -scope ALL_ACTIVE -lf 46310 177789 -mkt EBAY_US -c3f 177792 116381 -pricelf 2 -priceuf 100 -locf US CN -token xxx
290290
```
291291

292292
Using credentials file
293293
```
294-
java -jar feed-sdk-1.0.0.beta-RELEASE-uber.jar -dt 20180801 -c1 11700 -scope ALL_ACTIVE -mkt EBAY-US -pricelf 2 -priceuf 100 -locf US CN -cl <absolute path of credentials file>
294+
java -jar feed-sdk-1.0.0.beta-RELEASE-uber.jar -dt 20180801 -c1 11700 -scope ALL_ACTIVE -mkt EBAY_US -pricelf 2 -priceuf 100 -locf US CN -cl <absolute path of credentials file>
295295
```
296296

297297
### Using config file driven approach
@@ -306,7 +306,7 @@ The structure of the config file
306306
"requests": [{
307307
"feedRequest": {
308308
"categoryId": "1",
309-
"marketplaceId": "EBAY-US",
309+
"marketplaceId": "EBAY_US",
310310
"date": "20180708",
311311
"feedScope": "ALL_ACTIVE",
312312
"type": "ITEM"

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<modelVersion>4.0.0</modelVersion>
2121
<groupId>com.ebay.api</groupId>
2222
<artifactId>feed-sdk</artifactId>
23-
<version>1.0.1.beta-RELEASE</version>
23+
<version>1.0.2.beta-RELEASE</version>
2424
<packaging>jar</packaging>
2525
<name>${project.groupId}:${project.artifactId}</name>
2626
<description>eBay Feed SDK helps in downloading and filtering feed files</description>

src/main/java/com/ebay/feed/api/FeedImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ private GetFeedResponse invoker(Request.Builder requestBuilder, Path path, boole
316316

317317
/**
318318
* <p>
319-
* Since date is optional param for getting bootstrap feed, filePath will have null value(item_bootstrap-11116-null-EBAY-US.gz)
319+
* Since date is optional param for getting bootstrap feed, filePath will have null value(item_bootstrap-11116-null-EBAY_US.gz)
320320
* This method helps to rename the null value with LastModified api response header
321321
* </p>
322322
* @param originalFilePath

src/main/java/com/ebay/feed/api/Taxonomy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Taxonomy interface which consists of the following capabilities
2424
* <ul>
2525
* <li>
26-
* <b>getCategoryTreeId</b> - Get the category tree id for the marketplace. For EBAY-US, it returns 0
26+
* <b>getCategoryTreeId</b> - Get the category tree id for the marketplace. For EBAY_US, it returns 0
2727
* </li>
2828
* <li>
2929
* <b>loadLeafCategories</b> - Creates a map between level two categories to leaf categories,
@@ -45,7 +45,7 @@ public interface Taxonomy {
4545
* </p>
4646
*
4747
* @param token OAUth token
48-
* @param marketplaceId A string representing the marketplace : EBAY-US
48+
* @param marketplaceId A string representing the marketplace : EBAY_US
4949
* @return string The category tree id for the marketplace
5050
*/
5151
public String getCategoryTreeId(String token, String marketplaceId);

src/main/java/com/ebay/feed/api/TaxonomyImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Taxonomy implementation which consists of the following capabilities
3838
* <ul>
3939
* <li>
40-
* <b>getCategoryTreeId</b> - Get the category tree id for the marketplace. For EBAY-US, it returns
40+
* <b>getCategoryTreeId</b> - Get the category tree id for the marketplace. For EBAY_US, it returns
4141
* 0</li>
4242
* <li>
4343
* <b>loadLeafCategories</b> - Creates a map between level two categories to leaf categories, and

src/main/java/com/ebay/feed/cli/FeedCli.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static void main(String[] args) throws Exception {
7777

7878
// marketplace
7979
options.addOption("mkt", true,
80-
"the marketplace id for which feed is being request. For example - EBAY-US");
80+
"the marketplace id for which feed is being request. For example - EBAY_US");
8181

8282
// token
8383
options.addOption("token", true, "the oauth token for the consumer. Omit the word 'Bearer'");

src/main/java/com/ebay/feed/example/CombiningFilters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class CombiningFilters {
5858
// TODO : Check if the date is within 14 days, before making the call
5959
private static final String DATE = "20180805";
6060
private static final String SCOPE = "ALL_ACTIVE";
61-
private static final String MKT = "EBAY-US";
61+
private static final String MKT = "EBAY_US";
6262

6363
public static void main(String[] args) {
6464

src/main/java/com/ebay/feed/example/FilterByEnv.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class FilterByEnv {
4343

4444

4545
// oauth token
46-
static String TOKEN = Constants.TOKEN_BEARER_PREFIX + "v^1.1#i^1#^...";
46+
static String TOKEN = Constants.TOKEN_BEARER_PREFIX + "v^1.1#i^1#p^1#r^0#I...";
4747

4848
// init feed
4949
static Feed feed = new FeedImpl();
@@ -53,7 +53,7 @@ public class FilterByEnv {
5353
// TODO : Check if the date is within 14 days, before making the call
5454
private static final String DATE = "20181005";
5555
private static final String SCOPE = "ALL_ACTIVE";
56-
private static final String MKT = "EBAY-US";
56+
private static final String MKT = "EBAY_US";
5757

5858
public static void main(String[] args) {
5959

src/main/java/com/ebay/feed/example/FilterByEpids.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class FilterByEpids {
5555
// TODO : Check if the date is within 14 days, before making the call
5656
private static final String DATE = "20180805";
5757
private static final String SCOPE = "ALL_ACTIVE";
58-
private static final String MKT = "EBAY-US";
58+
private static final String MKT = "EBAY_US";
5959

6060
public static void main(String[] args) {
6161

0 commit comments

Comments
 (0)