Subversion Repositories SmartDukaan

Rev

Rev 12575 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
12573 amit.gupta 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
	 ***********************************************************************/
12579 amit.gupta 35
 
36
	public static final String accessKeyId = "AKIAJBFVIU6DHLMNZ2GA";
37
 
38
	public static final String secretAccessKey = "gvTng1syaKUpPXvUG1xuc4AOHa0y7NCvBF2DZbBe";
12575 amit.gupta 39
	public static final String applicationName = "Test";
12573 amit.gupta 40
	public static final String applicationVersion = "1.0";
41
 
12579 amit.gupta 42
	public static final String sellerId = "A116PWEHC4HP0W";
12575 amit.gupta 43
 
12579 amit.gupta 44
	public static final String marketplaceId = "A2UTKXGQLHXMO";
12573 amit.gupta 45
 
12579 amit.gupta 46
 
12573 amit.gupta 47
    public static MarketplaceIdList marketplaceIdList =null;
48
 
49
	public static MarketplaceWebServiceOrdersConfig config = new MarketplaceWebServiceOrdersConfig();
50
 
51
	static {
52
 
53
	    //
54
	    // IMPORTANT: Uncomment out the appropriate line for the country you wish 
55
	    // to sell in:
56
	    //
57
		//India:
58
		final List<String> marketplaceidlist = new ArrayList<String>();
59
		marketplaceidlist.add(marketplaceId);
60
		marketplaceIdList= new MarketplaceIdList(marketplaceidlist);
61
 
62
		config.setServiceURL("https://mws.amazonservices.in/Orders/2011-01-01");
63
 
64
	    // United States:
65
	    // config.setServiceURL("https://mws.amazonservices.com/Orders/2011-01-01");
66
	    //
67
	    // Canada:
68
	    // config.setServiceURL("https://mws.amazonservices.ca/Orders/2011-01-01");
69
	    //
70
	    // Europe:
71
	    // config.setServiceURL("https://mws-eu.amazonservices.com/Orders/2011-01-01");
72
	    //
73
	    // Japan:
74
	    // config.setServiceURL("https://mws.amazonservices.jp/Orders/2011-01-01");
75
	    //
76
	    // China:
77
	    // config.setServiceURL("https://mws.amazonservices.com.cn/Orders/2011-01-01");
78
	    //
79
		/************************************************************************
80
		 * You can also try advanced configuration options. Available options are:
81
		 * 
82
		 * - Signature Version - Proxy Host and Proxy Port - User Agent String to be
83
		 * sent to Marketplace Web Service
84
		 *************************************************************************/
85
	}
86
 
87
}