07-01-2014 03:30
07-01-2014 03:30
I've be posting addalarm requests with success then suddently last few days, using the same code I'm getting.
Client error response
[status code] 400
[reason phrase] Bad Request
[url] http://api.fitbit.com/1/user/-/devices/tracker/deviceid/alarms.xml
I'm sending this - array('time' => '11:44+01:00', 'enabled' => 'true','recurring' => 'false','weekDays' => 'MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY'));
What's changed on fitbits side?
Answered! Go to the Best Answer.
Best Answer07-01-2014 10:15
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
07-01-2014 10:15
Try again with 'MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY'
No spaces between each comma.
07-01-2014 10:15
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
07-01-2014 10:15
Try again with 'MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY'
No spaces between each comma.
07-02-2014 01:28
07-02-2014 01:28
Good observation but still get the error after removing spaces, the code worked before I actually didn't have spaces then was using 'Monday,Tuesday'
Best Answer07-02-2014 01:35
07-02-2014 01:35
right I see what's happening it's working now.
Previously I was able to make it work with 'MONDAY,TUESDAY' as I wasn't concerned as my settings for recurring were set to false. Now maybe something changed, server side, so that all the days need to be included for it to work.
Best Answer