Module: AutoFlick
- Defined in:
- lib/auto_flick.rb,
lib/auto_flick/api.rb,
lib/auto_flick/version.rb
Defined Under Namespace
Classes: Api
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
Class Method Details
.config(config) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/auto_flick.rb', line 6 def self.config(config) FlickRaw.api_key = config[:api_key] FlickRaw.shared_secret = config[:shared_secret] @username = config[:username] @password = config[:password] authenticate end |
.upload(path) ⇒ Object
15 16 17 18 19 |
# File 'lib/auto_flick.rb', line 15 def self.upload(path) id = flickr.upload_photo path, :title => "Title", :description => "This is the description", :is_public => true info = flickr.photos.getInfo(:photo_id => id) FlickRaw.url_o(info) end |