lib/nsicloudooo/client.rb in nsicloudooo-0.5.1 vs lib/nsicloudooo/client.rb in nsicloudooo-0.5.2
- old
+ new
@@ -163,10 +163,10 @@
# @raise NSICloudooo::Errors::Client::AuthenticationError when invalids user and/or password are provided
# @raise NSICloudooo::Errors::Client::KeyNotFoundError when an invalid sam_uid is provided
#
def extract_metadata(document_key, type, callback_url=nil, callback_verb=nil)
@request_data = {:sam_uid => document_key, :type => type, :metadata => true}
- insert_callback_data {:callback => callback_url, :verb => callback_verb}
+ insert_callback_data :callback => callback_url, :verb => callback_verb
request = prepare_request :POST, @request_data.to_json
execute_request(request)
end
# Return the key of the metadata of a document