Class: AppleSignIn::ApiCaller

Inherits:
Object
  • Object
show all
Defined in:
lib/apple_sign_in/api_caller.rb

Instance Method Summary collapse

Instance Method Details

#get(url, body = {}) ⇒ Object



14
15
16
# File 'lib/apple_sign_in/api_caller.rb', line 14

def get(url, body = {})
  httparty.get("#{apple_base_url}#{url}", body: body)
end

#post(url, body) ⇒ Object



10
11
12
# File 'lib/apple_sign_in/api_caller.rb', line 10

def post(url, body)
  httparty.post("#{apple_base_url}#{url}", body: body)
end