Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accept-Language Header US

Hello, running the below.NET sample code, the results are coming back METRIC, how would you programmatically add the header "Accept-Language", value = "en_US" so that the results come back US (milliseconds, miles, feet, inches, pounds etec)?

 

 

https://wiki.fitbit.com/display/API/API+.NET+Client

 

 

Best Answer
0 Votes
3 REPLIES 3

Hi dalamac,

 

Did you figure out how to add the header? Could you please share your learning

 

Thanks,

js

 

Best Answer
0 Votes

What API endpoint are use using?

Setting header should be very straight forward operation.

Supported values are listed here: https://wiki.fitbit.com/display/API/API+Unit+System

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

Ok, figured it out. It was easy as you said!

 

Thanks,

js

Best Answer
0 Votes