diff --git a/lib/face/client/recognition.rb b/lib/face/client/recognition.rb index f14af61..9cdc464 100644 --- a/lib/face/client/recognition.rb +++ b/lib/face/client/recognition.rb @@ -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 diff --git a/lib/face/client/utils.rb b/lib/face/client/utils.rb index 25a5a84..366562e 100644 --- a/lib/face/client/utils.rb +++ b/lib/face/client/utils.rb @@ -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 diff --git a/lib/face/version.rb b/lib/face/version.rb index 86a0406..f7dff54 100644 --- a/lib/face/version.rb +++ b/lib/face/version.rb @@ -1,3 +1,3 @@ module Face - VERSION = "0.0.4" + VERSION = "0.0.5" end