FlickrBlogs

Inherits from:none (FlickrBlogs is a root class)
  • Version: 1.0
  • Author: Fabricio Zuardi
  • Classpath: com.zuardi.flickr.FlickrBlogs
  • File last modified: Saturday, 04 September 2004, 09:38:40
FlickrBlogs
last update 08/25/2004

Summary

Constructor
Instance properties
Instance methods

Constructor

FlickrBlogs

function FlickrBlogs (
api_key:String, user_email:String, user_password:String, rest_endpoint:String)
These parameters are filled automatically if you are using a Flickr object otherwise, if you are instantiating a FlickrBlogs, object you have to enter the parameters
Parameters
api_key: :
(required) The api_key of the application
user_email: :
(optional) The email to use on methods that requires user authentication
user_password::
(optional) The email to use on methods that requires user authentication
rest_endpoint::
(optional) The rest endpoint url

Instance methods

postPhoto

public function postPhoto (
user_email:String, user_password:String, blog_id:String, photo_id:String, post_title:String, description:String, blog_password:String)
Post a photo in the specified blog.
Parameters
user_email: :
(required) The email used to authenticate on Flickr
user_password::
(required) The password used to authenticate on Flickr
photo_id: :
(required) The id of your flickr photo you want to post on the blog
post_title: :
(required) The title of the post
description: :
(required) A text to go along with the photo on your blog
blog_password::
(optional) Your blog password, only necessary if you aren't storing it on flickr (needspassword = 1)
Usage
my_flickr = new Flickr(APIKEY);
my_flickr.blogs.onPhotoPosted = function(error){
    if(!error){
        trace("post successful!")
    }else{
        trace(error)
    }
}
my_flickr.blogs.postPhoto(USEREMAIL,USERPASSWD,BLOGID,PHOTOID,"Some title","A descrition","your_blog_password")