Class: Flickr::Api::UploadTicket

Inherits:
Abstract
  • Object
show all
Defined in:
lib/flickr/api/upload_ticket.rb

Instance Method Summary collapse

Methods inherited from Abstract

#find, #initialize, object_class

Methods included from Flickr::AutoloadHelper

#autoload_dir, #autoload_names

Constructor Details

This class inherits a constructor from Flickr::Api::Abstract

Instance Method Details

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

Used to check the status of a photo uploaded or replaced asynchronously.

Parameters:

  • ticket_ids (String)

    Comma-delimited list of ticket IDs (see documentation below)

Returns:



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

def check(ticket_ids, params = {})
  response = get "photos.upload.checkTickets", params.merge(tickets: ticket_ids)
  new_list(:UploadTicket, response["uploader"]["ticket"], response["uploader"])
end