Esempio 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);
        }
Esempio n. 2
0
 public AmazonWrapper(AmazonAuthentication authentication, AmazonEndpoint endpoint, string associateTag = "nagerat-21")
 {
     this._authentication = authentication;
     this._endpoint       = endpoint;
     this._associateTag   = associateTag;
 }