Class: PayPal::IdentityResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/pay_pal/resources/identity.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from PayPal::Resource

Instance Method Details

#infoObject



4
5
6
7
# File 'lib/pay_pal/resources/identity.rb', line 4

def info
  response = get_request("v1/identity/oauth2/userinfo?schema=paypalv1.1")
  Identity.new(response.body)
end