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

retrieve single activity by logId

Is there a way to retrieve a single activity by logId?  

Best Answer
0 Votes
4 REPLIES 4

it is /activities/{logId}.json - found this out by trial and error.  If someone could point me to the page this on that would be great.

Best Answer
0 Votes

@danielle98 wrote:

Is there a way to retrieve a single activity by logId?  


Not officially. What is the use case? All of the information is returned in the Get Activity Logs List endpoint.

 


@danielle98 wrote:

it is /activities/{logId}.json - found this out by trial and error.  If someone could point me to the page this on that would be great.


You discovered a hidden feature. Endpoints not documented are not officially supported.

Best Answer
0 Votes
If I am using a subscription to give me the changes in the collection
activities - and I am supposed to retrieve the item - list will let me
retrieve by date - this may or may not give me the one that is created or
updated only - it will also give me all the others corresponding to that
date. That isn't very granular. Or am I missing something?
Best Answer
0 Votes

@danielle98 Yeah that's how it works. If you're looking for a specific activity you would have to look through the list that's returned.

 

If you're looking for a recently added or modified activity on a certain date, maybe comparing "lastModified" and/or "startTime" within the activities could help?

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes