02-24-2015 01:11
02-24-2015 01:11
Hello,
i'm building a web api with RestSharp authentication.
I set the signaturemethod to HmacSha1, but still i get this error:
{"errors":[{"errorType":"oauth","fieldName":"oauth_signature_method","message":"Invalid signature method: HMACSHA1. Fitbit API currently supports: HMAC-SHA1"}],"success":false}
This method worked 2 weeks ago.
What can be the problem?
Answered! Go to the Best Answer.
02-24-2015 07:56
02-24-2015 07:56
You should pass exactly "HMAC-SHA1" value. In other words you have missing "-" in signature method that you pass in your request.
02-24-2015 07:56
02-24-2015 07:56
You should pass exactly "HMAC-SHA1" value. In other words you have missing "-" in signature method that you pass in your request.
02-24-2015 08:01
02-24-2015 08:01
I cant pass anything to the OAuth1Authenticator, just i can set from the RestSharp list, but the same code works on a windows hpone 8 page, but not on the server.
02-24-2015 08:02 - edited 02-24-2015 08:03
02-24-2015 08:02 - edited 02-24-2015 08:03
Fitbit API servers expect "HMAC-SHA1" as a value.
If the library you're using does not allow it please contat the developers who developed this library.