MoriTanosuke/FitbitAnalyzr — Issue #13: Update resource after receiving subscription notification
Author: MoriTanosuke
Created: 2012-03-08 20:39:55+00:00
State: open

When receiving a notification form the *Subscription API* the application should update the notified resource on behalf of the user.

Example notification is

[
{
"collectionType":"foods",
"date":"2010-03-01",
"ownerId":"228S74",
"ownerType":"user",
"subscriptionId":"1234",
},
{
"collectionType":"foods",
"date":"2010-03-02",
"ownerId":"228S74",
"ownerType":"user",
"subscriptionId":"1234",
},
{

"collectionType":"activities",
"date":"2010-03-01",
"ownerId":"184X36",
"ownerType":"user",
"subscriptionId":"2345",
}
]

I think we should then go and update the resources based on **collectionType** and **date**. What I don't know yet is how we get from **collectionType** to a real *TimeSeries*. Some kind of mapping is involved here...