//------------------------------------------------------------------------------- public AmazonItemHandler(string pubKey, string privKey, string associteTag) { _connectionInfo = new ProductApiConnectionInfo(); _connectionInfo.AWSAccessKey = pubKey; _connectionInfo.AWSSecretKey = privKey; _connectionInfo.AWSAssociateTag = associteTag; _apiClient = new AwsProductApiClient(_connectionInfo); }
//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" }); }
public void Initialize() { communicatorMock = new Mock<ICommunicator>(); api = new AwsProductApiClient(new AwsTestConnectionInfo(), communicatorMock.Object); }
public void Initialize() { communicatorMock = new Mock <ICommunicator>(); api = new AwsProductApiClient(new AwsTestConnectionInfo(), communicatorMock.Object); }