コード例 #1
0
		public async void CanSignRequest()
		{
			var signer = new HttpRequestMessageSigner();

			var signature = signer.Sign(_secretKey, "GET", "https://api.itbit.com/v1", "", "123", "1234567890");

			Assert.AreEqual("IbGoBftlsOV3oAzG1wkn5WHcBdS7cRzezJwm9CrwUetWp4ZheefJdI7mINW8bDgy38nI/w0TdmQqPfqjlK1Fqg==", signature);
		}
コード例 #2
0
 public HttpRequestBuilder(string clientKey, string secret)
 {
     _clientKey = clientKey;
     _secret = secret;
     _signer = new HttpRequestMessageSigner();
 }