Module: KewegoParty::Client::Upload

Included in:
KewegoParty::Client
Defined in:
lib/kewego_party/client/upload.rb

Instance Method Summary collapse

Instance Method Details

#upload_get_available_categoriesArray

List of categories available for a video upload

Examples:

receive the available categories

KewegoParty.upload_get_available_categories

Returns:

  • (Array)

    returns the available categories for a video upload.

See Also:



11
12
13
14
15
# File 'lib/kewego_party/client/upload.rb', line 11

def upload_get_available_categories
  options = {:appToken  => app_token}
  response = get("/upload/getAvailableCategories", options)
  process_response(response, [:categories, :category])
end

#upload_get_upload_progress(upload_key) ⇒ Hashie::Rash

Status of a video upload

Examples:

receive the status of an upload

KewegoParty.upload_get_upload_progress('cd26e3d0fd21fec2589c6f7dd41078')

Parameters:

  • upload_key (String)

    unique key used to follow an upload, declared in uploadVideo call as X-Progress-ID

Returns:

  • (Hashie::Rash)

    returns the status of the video upload

See Also:



24
25
26
27
28
# File 'lib/kewego_party/client/upload.rb', line 24

def upload_get_upload_progress(upload_key)
  options = {:appToken  => app_token, :upload_key => upload_key}
  response = get("/upload/getUploadProgress", options)
  process_response(response, [])
end