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

Link to this section Functions

Specs

get_list(opts()) :: operation()

Get a list of configured blogs for the calling user.

This method requires authentication with "read" permission.

Options

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"
}
Link to this function

get_services(opts \\ [])

View Source

Specs

get_services(opts()) :: operation()

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"
}
Link to this function

post_photo(photo_id, title, description, opts \\ [])

View Source

Specs

post_photo(arg(), arg(), arg(), opts()) :: operation()

This method requires authentication with "write" permission.

Arguments

  • photo_id - The id of the photo to blog

  • title - The blog post title

  • description - 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.