Exemplo n.º 1
0
        public AmazonSign(AmazonAuthentication amazonAuthentication, AmazonEndpoint amazonEndpoint)
        {
            var domain = AmazonDomain.GetDomain(amazonEndpoint);
            var secret = Encoding.UTF8.GetBytes(amazonAuthentication.SecretKey);

            this.endPoint = $"webservices.{domain}";
            this.akid     = amazonAuthentication.AccessKey;
            this.signer   = new HMACSHA256(secret);
        }
Exemplo n.º 2
0
 public AmazonWrapper(AmazonAuthentication authentication, AmazonEndpoint endpoint, string associateTag = "nagerat-21")
 {
     this._authentication = authentication;
     this._endpoint       = endpoint;
     this._associateTag   = associateTag;
 }