Пример #1
0
 /// <summary>
 /// Create client.
 /// </summary>
 /// <param name="accessKey">Access Key</param>
 /// <param name="secretKey">Secret Key</param>
 /// <param name="config">configuration</param>
 public ImwssOrdersServiceClient(String accessKey, String secretKey, MarketplaceWebServiceOrdersConfig config)
 {
     this.connection = config.CopyConnection();
     this.connection.AwsAccessKeyId = accessKey;
     this.connection.AwsSecretKeyId = secretKey;
     this.connection.LibraryVersion = libraryVersion;
     this.servicePath = config.ServicePath;
 }
Пример #2
0
        /// <summary>
        /// Added to initialize service without too much changes in original code .
        /// </summary>
        /// <param name="accessKey">The access key.</param>
        /// <param name="secretKey">The secret key.</param>
        /// <param name="applicationName">Name of the application.</param>
        /// <param name="applicationVersion">The application version.</param>
        public void Init(string accessKey, string secretKey, string applicationName, string applicationVersion)
        {
            var config = new MarketplaceWebServiceOrdersConfig();

            config.ServiceURL = "https://mws.amazonservices.co.uk/Orders/2013-09-01";
            this.connection   = config.CopyConnection();
            this.connection.AwsAccessKeyId     = accessKey;
            this.connection.AwsSecretKeyId     = secretKey;
            this.connection.ApplicationName    = applicationName;
            this.connection.ApplicationVersion = applicationVersion;
            this.connection.LibraryVersion     = libraryVersion;
            this.servicePath = config.ServicePath;
        }