| 7473 |
vikram.rag |
1 |
/*******************************************************************************
|
|
|
2 |
* Copyright 2008-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
3 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
4 |
*
|
|
|
5 |
* You may not use this file except in compliance with the License.
|
|
|
6 |
* You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
|
|
|
7 |
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
|
8 |
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
|
9 |
* specific language governing permissions and limitations under the License.
|
|
|
10 |
* *****************************************************************************
|
|
|
11 |
*
|
|
|
12 |
* Marketplace Web Service Orders Java Library
|
|
|
13 |
* API Version: 2011-01-01
|
|
|
14 |
*
|
|
|
15 |
*/
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
package com.amazonservices.mws.orders.samples;
|
|
|
22 |
|
|
|
23 |
import java.util.List;
|
|
|
24 |
import java.util.ArrayList;
|
|
|
25 |
import com.amazonservices.mws.orders.*;
|
|
|
26 |
import com.amazonservices.mws.orders.model.*;
|
|
|
27 |
|
|
|
28 |
/**
|
|
|
29 |
* Configuration used in Marketplace Web Service Orders samples
|
|
|
30 |
*/
|
|
|
31 |
final public class OrdersConfig {
|
|
|
32 |
/************************************************************************
|
|
|
33 |
* Set Access Key ID, Secret Acess Key ID, Seller ID, etc.
|
|
|
34 |
***********************************************************************/
|
|
|
35 |
public static final String accessKeyId = "AKIAII3SGRXBJDPCHSGQ";
|
|
|
36 |
public static final String secretAccessKey = "B92xTbNBTYygbGs98w01nFQUhbec1pNCkCsKVfpg";
|
|
|
37 |
public static final String applicationName = "Test";
|
|
|
38 |
public static final String applicationVersion = "1.0";
|
|
|
39 |
|
|
|
40 |
public static final String sellerId = "AF6E3O0VE0X4D";
|
|
|
41 |
|
|
|
42 |
public static final String marketplaceId = "A21TJRUUN4KGV";
|
|
|
43 |
|
|
|
44 |
public static MarketplaceIdList marketplaceIdList =null;
|
|
|
45 |
|
|
|
46 |
public static MarketplaceWebServiceOrdersConfig config = new MarketplaceWebServiceOrdersConfig();
|
|
|
47 |
|
|
|
48 |
static {
|
|
|
49 |
|
|
|
50 |
//
|
|
|
51 |
// IMPORTANT: Uncomment out the appropriate line for the country you wish
|
|
|
52 |
// to sell in:
|
|
|
53 |
//
|
|
|
54 |
//India:
|
|
|
55 |
final List<String> marketplaceidlist = new ArrayList<String>();
|
|
|
56 |
marketplaceidlist.add(marketplaceId);
|
|
|
57 |
marketplaceIdList= new MarketplaceIdList(marketplaceidlist);
|
|
|
58 |
|
|
|
59 |
config.setServiceURL("https://mws.amazonservices.in/Orders/2011-01-01");
|
|
|
60 |
|
|
|
61 |
// United States:
|
|
|
62 |
// config.setServiceURL("https://mws.amazonservices.com/Orders/2011-01-01");
|
|
|
63 |
//
|
|
|
64 |
// Canada:
|
|
|
65 |
// config.setServiceURL("https://mws.amazonservices.ca/Orders/2011-01-01");
|
|
|
66 |
//
|
|
|
67 |
// Europe:
|
|
|
68 |
// config.setServiceURL("https://mws-eu.amazonservices.com/Orders/2011-01-01");
|
|
|
69 |
//
|
|
|
70 |
// Japan:
|
|
|
71 |
// config.setServiceURL("https://mws.amazonservices.jp/Orders/2011-01-01");
|
|
|
72 |
//
|
|
|
73 |
// China:
|
|
|
74 |
// config.setServiceURL("https://mws.amazonservices.com.cn/Orders/2011-01-01");
|
|
|
75 |
//
|
|
|
76 |
/************************************************************************
|
|
|
77 |
* You can also try advanced configuration options. Available options are:
|
|
|
78 |
*
|
|
|
79 |
* - Signature Version - Proxy Host and Proxy Port - User Agent String to be
|
|
|
80 |
* sent to Marketplace Web Service
|
|
|
81 |
*************************************************************************/
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
}
|