Establishing a Connection
Configure a Connection Profile
From the CData ribbon, click Get Data and select From Amazon Marketplace connection/s to launch the CData Query window. To setup a new connection, you will have to click the New Amazon Marketplace Connection button. Here you can set the connection settings, test the connection, and save the connection profile.
Connecting to Amazon Marketplace
The following properties are required:
- Schema: Set this to SellerCentral.
- InitiateOAuth: Set this to GETANDREFRESH.
- Marketplace: Set this to the Marketplace region that you are registered to sell in.
Authenticate to Amazon Marketplace
OAuth
Amazon Marketplace uses the OAuth authentication standard.
To authenticate using OAuth, you must either use the embedded application or create a new custom OAuth app. The embedded application supports desktop applications and headless machines. Web applications require that you create a custom OAuth application.
You can use a custom OAuth application to authenticate with a service account or a user account. See Creating a Custom OAuth App for more information.
Downloading Embedded Credentials
Because Amazon Marketplace requires that embedded credentials rotate every six months, CData credentials are hosted on oa.cdata.com. If you do not specify custom credentials, the embedded credentials are downloaded from our web service and saved in the location specified in OAuthClientLocation by default. NOTE: Make sure your firewall does not block oa.cdata.com.
Desktop Apps
You can use the embedded application or create a custom OAuth application. The key difference is that you must set additional connection properties if you use a custom application.Get and Refresh the OAuth Access Token
After setting the following, you are ready to connect:
- Marketplace: Set this to the Marketplace region that you are registered to sell in.
- AppId: Set this to the application Id for the Selling Partner application you created.
- Schema: Set this to SellerCentral to connect to Seller Central API.
- AWSAccessKey: This is the Access Key tied to the AWS user that is associated with the OAuthClientId.
- AWSSecretKey: This is the Secret Key tied to the AWS user that is associated with the OAuthClientId.
- OAuthClientId (custom applications only): Set this to the client Id assigned when you registered your app.
- OAuthClientSecret (custom applications only): Set this to the client secret assigned when you registered your app.
Connection Properties
The Connection properties describe the various options that can be used to establish a connection.
Managing Connections
After successfully authenticating to Amazon Marketplace you will be able to customize the data you are importing. To learn more about this, see Managing Connections.
See Also
- Querying Data: Use the data selection wizard to pull data into a spreadsheet. You can also configure scheduled data refresh here.
- Using the Excel Add-In: Find other ways to interact with Amazon Marketplace data, such as using the available CData Excel Functions.