lib/tanita/api/client/helpers.rb in tanita-api-client-0.2.1 vs lib/tanita/api/client/helpers.rb in tanita-api-client-0.2.2
- old
+ new
@@ -5,9 +5,16 @@
module Tanita
module Api
module Client
BASE_URL = 'https://www.healthplanet.jp'
+
+ AUTH_URL_PATH = '/oauth/auth'
+ AUTH_URL = "#{BASE_URL}#{AUTH_URL_PATH}"
+
+ TOKEN_URL_PATH = '/oauth/token'
+ TOKEN_URL = "#{BASE_URL}#{TOKEN_URL_PATH}"
+
DEFAULT_REDIRECT_URI = "#{BASE_URL}/success.html"
module HttpHelper
def generate_uri(path, params)
uri = URI.parse("#{BASE_URL}#{path}?#{URI.encode_www_form(params)}")