Module: Flickr::Api

Included in:
Flickr
Defined in:
lib/flickr/api.rb,
lib/flickr/api/set.rb,
lib/flickr/api/photo.rb,
lib/flickr/api/person.rb,
lib/flickr/api/general.rb,
lib/flickr/api/license.rb,
lib/flickr/api/abstract.rb,
lib/flickr/api/upload_ticket.rb,
lib/flickr/api/abstract/params_processor.rb

Defined Under Namespace

Classes: Abstract, General, License, Person, Photo, Set, UploadTicket

Instance Method Summary collapse

Instance Method Details

#check_upload_tickets(tickets, params = {}) ⇒ Flickr::Object::List<Flickr::Object::UploadTicket>

Deprecated.

Use Flickr.upload_tickets.check instead.


66
67
68
69
# File 'lib/flickr/api.rb', line 66

def check_upload_tickets(tickets, params = {})
  Flickr.deprecation_warn "`Flickr.check_upload_tickets` is deprecated. Use `Flickr.upload_tickets.check` instead."
  upload_tickets.check(tickets, params)
end

#get_methods(params = {}) ⇒ Array<String>

Returns:

  • (Array<String>)

See Also:


75
76
77
# File 'lib/flickr/api.rb', line 75

def get_methods(params = {})
  api.get_methods(params)
end

#licensesFlickr::Api::License


41
42
43
# File 'lib/flickr/api.rb', line 41

def licenses
  Flickr::Api::License.new(access_token)
end

#peopleFlickr::Api::Person

Returns:


20
21
22
# File 'lib/flickr/api.rb', line 20

def people
  Flickr::Api::Person.new(access_token)
end

#photosFlickr::Api::Photo

Returns:


13
14
15
# File 'lib/flickr/api.rb', line 13

def photos
  Flickr::Api::Photo.new(access_token)
end

#replace(photo, photo_id, params = {}) ⇒ String

Returns:

  • (String)

See Also:


57
58
59
# File 'lib/flickr/api.rb', line 57

def replace(photo, photo_id, params = {})
  api.replace(photo, photo_id, params)
end

#setsFlickr::Api::Set

Returns:


27
28
29
# File 'lib/flickr/api.rb', line 27

def sets
  Flickr::Api::Set.new(access_token)
end

#test_echo(params = {}) ⇒ Hash

Returns:

  • (Hash)

See Also:


91
92
93
# File 'lib/flickr/api.rb', line 91

def test_echo(params = {})
  api.test_echo(params)
end

#test_login(params = {}) ⇒ Hash

Returns:

  • (Hash)

See Also:


83
84
85
# File 'lib/flickr/api.rb', line 83

def (params = {})
  api.(params)
end

#test_null(params = {}) ⇒ Hash

Returns:

  • (Hash)

See Also:


99
100
101
# File 'lib/flickr/api.rb', line 99

def test_null(params = {})
  api.test_null(params)
end

#upload(photo, params = {}) ⇒ String

Returns:

  • (String)

See Also:


49
50
51
# File 'lib/flickr/api.rb', line 49

def upload(photo, params = {})
  api.upload(photo, params)
end

#upload_ticketsFlickr::Api::UploadTicket


34
35
36
# File 'lib/flickr/api.rb', line 34

def upload_tickets
  Flickr::Api::UploadTicket.new(access_token)
end