Flickrex.Flickr.Activity (flickrex v0.8.1) View Source
Link to this section Summary
Functions
Returns a list of recent activity on photos commented on by the calling user. <b>Do not poll this method more than once an hour</b>.
Returns a list of recent activity on photos belonging to the calling user. <b>Do not poll this method more than once an hour</b>.
Link to this section Types
Specs
arg() :: String.Chars.t()
Specs
operation() :: Flickrex.Operation.Rest.t()
Specs
opts() :: Flickrex.Rest.args()
Link to this section Functions
Specs
Returns a list of recent activity on photos commented on by the calling user. <b>Do not poll this method more than once an hour</b>.
This method requires authentication with "read" permission.
Options
per_page- Number of items to return per page. If this argument is omitted, it defaults to 10. The maximum allowed value is 50.page- The page of results to return. If this argument is omitted, it defaults to 1.
Example response
%{
"items" => %{
"item" => [
%{
"activity" => %{
"event" => %{
"_content" => "yay",
"dateadded" => "1144086424",
"type" => "comment",
"user" => "12037949754@N01",
"username" => "Bees"
}
},
"comments" => "1",
"id" => "395",
"more" => "0",
"owner" => "12037949754@N01",
"photos" => "7",
"primary" => "6521",
"secret" => "5a3cc65d72",
"server" => "2",
"title" => %{"_content" => "A set of photos"},
"type" => "photoset",
"views" => "33"
},
%{
"activity" => %{
"event" => [
%{
"_content" => "test",
"dateadded" => "1133806604",
"type" => "comment",
"user" => "12037949754@N01",
"username" => "Bees"
},
%{
"_content" => "nice",
"dateadded" => "1118785229",
"type" => "note",
"user" => "12037949754@N01",
"username" => "Bees"
}
]
},
"comments" => "1",
"faves" => "0",
"id" => "10289",
"more" => "0",
"notes" => "0",
"owner" => "12037949754@N01",
"secret" => "34da0d3891",
"server" => "2",
"title" => %{"_content" => "A photo"},
"type" => "photo",
"views" => "47"
}
]
},
"stat" => "ok"
} Specs
Returns a list of recent activity on photos belonging to the calling user. <b>Do not poll this method more than once an hour</b>.
This method requires authentication with "read" permission.
Options
timeframe- The timeframe in which to return updates for. This can be specified in days (<code>'2d'</code>) or hours (<code>'4h'</code>). The default behavoir is to return changes since the beginning of the previous user session.per_page- Number of items to return per page. If this argument is omitted, it defaults to 10. The maximum allowed value is 50.page- The page of results to return. If this argument is omitted, it defaults to 1.
Example response
%{
"items" => %{
"item" => [
%{
"activity" => %{
"event" => %{
"_content" => "yay",
"dateadded" => "1144086424",
"type" => "comment",
"user" => "12037949754@N01",
"username" => "Bees"
}
},
"commentsnew" => "1",
"commentsold" => "1",
"id" => "395",
"more" => "0",
"owner" => "12037949754@N01",
"photos" => "7",
"primary" => "6521",
"secret" => "5a3cc65d72",
"server" => "2",
"title" => %{"_content" => "A set of photos"},
"type" => "photoset",
"views" => "33"
},
%{
"activity" => %{
"event" => [
%{
"_content" => "test",
"dateadded" => "1133806604",
"type" => "comment",
"user" => "12037949754@N01",
"username" => "Bees"
},
%{
"_content" => "nice",
"dateadded" => "1118785229",
"type" => "note",
"user" => "12037949754@N01",
"username" => "Bees"
}
]
},
"commentsnew" => "1",
"commentsold" => "1",
"faves" => "0",
"id" => "10289",
"more" => "0",
"notesnew" => "1",
"notesold" => "0",
"owner" => "12037949754@N01",
"secret" => "34da0d3891",
"server" => "2",
"title" => %{"_content" => "A photo"},
"type" => "photo",
"views" => "47"
}
]
},
"stat" => "ok"
}