Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/face/client/recognition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def faces_detect(opts={})
end

def faces_recognize(opts={})
opts.assert_valid_keys(:uids, :urls, :namespace, :detector, :attributes, :callback, :callback_url)
opts.assert_valid_keys(:uids, :file, :urls, :namespace, :detector, :attributes, :callback, :callback_url)
make_request(:faces_recognize, opts.merge(user_auth_param))
end

Expand Down
20 changes: 10 additions & 10 deletions lib/face/client/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ module Utils
class FaceError < StandardError; end

API_METHODS = {
:faces_detect => 'http://api.face.com/faces/detect.json',
:faces_recognize => 'http://api.face.com/faces/recognize.json',
:faces_train => 'http://api.face.com/faces/train.json',
:faces_status => 'http://api.face.com/faces/status.json',
:tags_get => 'http://api.face.com/tags/get.json',
:tags_add => 'http://api.face.com/tags/add.json',
:tags_save => 'http://api.face.com/tags/save.json',
:tags_remove => 'http://api.face.com/tags/remove.json',
:account_limits => 'http://api.face.com/account/limits.json',
:account_users => 'http://api.face.com/account/users.json'
:faces_detect => 'https://api.face.com/faces/detect.json',
:faces_recognize => 'https://api.face.com/faces/recognize.json',
:faces_train => 'https://api.face.com/faces/train.json',
:faces_status => 'https://api.face.com/faces/status.json',
:tags_get => 'https://api.face.com/tags/get.json',
:tags_add => 'https://api.face.com/tags/add.json',
:tags_save => 'https://api.face.com/tags/save.json',
:tags_remove => 'https://api.face.com/tags/remove.json',
:account_limits => 'https://api.face.com/account/limits.json',
:account_users => 'https://api.face.com/account/users.json'
}

def api_crendential
Expand Down
2 changes: 1 addition & 1 deletion lib/face/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Face
VERSION = "0.0.4"
VERSION = "0.0.5"
end