Upflickr is a Ruby Gem that makes it easier to upload images to Flickr using the Flickr API from within a ruby script or application.
It is released under the MIT license.
To install Upflickr:
The following attributes must be set for each new instance of Upflickr:
Get an authentication token using the get_auth_url and get_token Upflickr methods. If you have previously authenticated, you may avoid re-authenticating by setting the token attribute of a new instance.
| add_photo | get_auth_url | list_sets |
| check_token | get_token | remove_photo |
| create_set | license_photo | upload |
| delete_photo | list_photos | |
| delete_set |
Add an image to a set. To upload an image see the 'upload' method.
Check if the current authentication token is still valid.
Create a new photoset with the specified image as its main image (required).
Gets the unique authentication URL for confirming read/write/delete access. You must load this URL in a web browser prior to attempting get_token.
Get an authentication token after visiting the authentication URL and clicking confirm. This token may be used with the above 'token' method to set the token in a new instance without re-authenticating.
Specify a license for a photo. License IDs can be found at \
Without argument, list all images not assigned to any set. With set_id argument, list all images in the specified set.
Get a hash of all the photoset ids and titles for the current user.
Remove an image from a set.
Upload a new image. Create a hash using any of the arguments from \ as keys. All arguments are optional except 'photo'. Therefore, the minimum required argument is: args{'photo' => "/path/to/image1.jpg"}