com.aetrion.flickr.blogs
Class BlogsInterface

java.lang.Object
  extended by com.aetrion.flickr.blogs.BlogsInterface

public class BlogsInterface
extends java.lang.Object

Interface for working with Flickr blog configurations.

Version:
$Id: BlogsInterface.java,v 1.14 2009/07/11 20:30:27 x-mago Exp $
Author:
Anthony Eden

Constructor Summary
BlogsInterface(java.lang.String apiKey, java.lang.String sharedSecret, Transport transport)
           
 
Method Summary
 java.util.Collection getList()
          Get the collection of configured blogs for the calling user.
 java.util.Collection getServices()
          Return a list of Flickr supported blogging services.
 void postPhoto(Photo photo, java.lang.String blogId)
          Post the specified photo to a blog.
 void postPhoto(Photo photo, java.lang.String blogId, java.lang.String blogPassword)
          Post the specified photo to a blog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogsInterface

public BlogsInterface(java.lang.String apiKey,
                      java.lang.String sharedSecret,
                      Transport transport)
Method Detail

getServices

public java.util.Collection getServices()
                                 throws java.io.IOException,
                                        org.xml.sax.SAXException,
                                        FlickrException
Return a list of Flickr supported blogging services. This method does not require authentication.

Returns:
List of Services
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

postPhoto

public void postPhoto(Photo photo,
                      java.lang.String blogId,
                      java.lang.String blogPassword)
               throws java.io.IOException,
                      org.xml.sax.SAXException,
                      FlickrException
Post the specified photo to a blog. Note that the Photo.title and Photo.description are used for the blog entry title and body respectively.

Parameters:
photo - The photo metadata
blogId - The blog ID
blogPassword - The blog password
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

postPhoto

public void postPhoto(Photo photo,
                      java.lang.String blogId)
               throws java.io.IOException,
                      org.xml.sax.SAXException,
                      FlickrException
Post the specified photo to a blog.

Parameters:
photo - The photo metadata
blogId - The blog ID
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

getList

public java.util.Collection getList()
                             throws java.io.IOException,
                                    org.xml.sax.SAXException,
                                    FlickrException
Get the collection of configured blogs for the calling user.

Returns:
The Collection of configured blogs
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.