lib/yotpo/api/user.rb in yotpo-0.0.3 vs lib/yotpo/api/user.rb in yotpo-0.0.5

- old
+ new

@@ -32,18 +32,18 @@ # # Retrieves an oauth bearer token from Yotpo # # @param params [Hash] the request details - # @option params [String] :client_id the app key received at the registration - # @option params [String] :client_secret app secret received at the registration + # @option params [String] :app_key the app key received at the registration + # @option params [String] :secret app secret received at the registration # @return [Hash] that includes access_token and the token_type def get_oauth_token(params) request = { client_id: params[:app_key], client_secret: params[:secret], - grant_type: "client_credentials" + grant_type: 'client_credentials' } response = post('/oauth/token', request) return response end @@ -56,9 +56,9 @@ def get_login_url(params) request = { app_key: params[:app_key], secret: params[:secret] } - get('/users/b2blogin', request) + get('/users/b2blogin.json', request) end end end \ No newline at end of file