Flickrex.Flickr.Blogs (flickrex v0.8.1) View Source
Link to this section Summary
Functions
Get a list of configured blogs for the calling user.
Return a list of Flickr supported blogging services
This method requires authentication with "write" permission.
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
Get a list of configured blogs for the calling user.
This method requires authentication with "read" permission.
Options
service- Optionally only return blogs for a given service id. You can get a list of from <a href="https://www.flickr.com/services/api/flickr.blogs.getServices.html">flickr.blogs.getServices()</a>.
Example response
%{
"blogs" => %{
"blog" => [
%{
"id" => "73",
"name" => "Bloxus test",
"needspassword" => "0",
"url" => "http://remote.bloxus.com/"
},
%{
"id" => "74",
"name" => "Manila Test",
"needspassword" => "1",
"url" => "http://flickrtest1.userland.com/"
}
]
},
"stat" => "ok"
} Specs
Return a list of Flickr supported blogging services
This method does not require authentication.
Example response
%{
"services" => %{
"service" => [
%{"_content" => "Blogger", "id" => "beta.blogger.com"},
%{"_content" => "Typepad", "id" => "Typepad"},
%{"_content" => "Movable Type", "id" => "MovableType"},
%{"_content" => "LiveJournal", "id" => "LiveJournal"},
%{"_content" => "Wordpress", "id" => "MetaWeblogAPI"},
%{"_content" => "MetaWeblogAPI", "id" => "MetaWeblogAPI"},
%{"_content" => "Manila", "id" => "Manila"},
%{"_content" => "AtomAPI", "id" => "AtomAPI"},
%{"_content" => "BloggerAPI", "id" => "BloggerAPI"},
%{"_content" => "Vox", "id" => "Vox"},
%{"_content" => "Twitter", "id" => "Twitter"}
]
},
"stat" => "ok"
} Specs
This method requires authentication with "write" permission.
Arguments
photo_id- The id of the photo to blogtitle- The blog post titledescription- The blog post body
Options
blog_id- The id of the blog to post to.blog_password- The password for the blog (used when the blog does not have a stored password).service- A Flickr supported blogging service. Instead of passing a blog id you can pass a service id and we'll post to the first blog of that service we find.