//-------------------------------------------------------------------------------
        public AmazonItemHandler(string pubKey, string privKey, string associteTag)
        {
            _connectionInfo = new ProductApiConnectionInfo();

            _connectionInfo.AWSAccessKey    = pubKey;
            _connectionInfo.AWSSecretKey    = privKey;
            _connectionInfo.AWSAssociateTag = associteTag;

            _apiClient = new AwsProductApiClient(_connectionInfo);
        }
コード例 #2
0
 //Test out stuff here http://webservices.amazon.com/scratchpad/index.html
 public AmazonClient(BitlyClient bitlyClient)
 {
     _bitlyClient         = bitlyClient;
     _awsProductApiClient = new AwsProductApiClient(new ProductApiConnectionInfo
     {
         AWSAccessKey    = AwsAccessKey,
         AWSSecretKey    = AwsSecretKey,
         AWSAssociateTag = AwsAssociateTag,
         //http://docs.aws.amazon.com/AWSECommerceService/latest/DG/SOAPEndpoints.html
         //TODO: Can only use my credentials on .com
         AWSServerUri = "webservices.amazon.com"
     });
 }
コード例 #3
0
 public void Initialize()
 {
     communicatorMock = new Mock<ICommunicator>();
     api = new AwsProductApiClient(new AwsTestConnectionInfo(), communicatorMock.Object);
 }
コード例 #4
0
 public void Initialize()
 {
     communicatorMock = new Mock <ICommunicator>();
     api = new AwsProductApiClient(new AwsTestConnectionInfo(), communicatorMock.Object);
 }