Class: PayPal::SDK::Permissions::API

Inherits:
Core::API::Platform
  • Object
show all
Includes:
Services, Urls
Defined in:
lib/paypal-sdk/permissions/api.rb

Constant Summary collapse

PERMISSIONS_HTTP_HEADER =
{ "X-PAYPAL-REQUEST-SOURCE" => "permissions-ruby-sdk-#{VERSION}" }

Constants included from Urls

Urls::REDIRECT_ENDPOINTS

Instance Method Summary collapse

Methods included from Urls

#grant_permission_url, #redirect_url

Methods included from Services

#BuildCancelPermissions, #BuildGetAccessToken, #BuildGetAdvancedPersonalData, #BuildGetBasicPersonalData, #BuildGetPermissions, #BuildRequestPermissions, #CancelPermissions, #GetAccessToken, #GetAdvancedPersonalData, #GetBasicPersonalData, #GetPermissions, #RequestPermissions

Constructor Details

#initialize(environment = nil, options = {}) ⇒ API

Returns a new instance of API.


10
11
12
# File 'lib/paypal-sdk/permissions/api.rb', line 10

def initialize(environment = nil, options = {})
  super(SERVICE_NAME, environment, options)
end

Instance Method Details

#default_http_headerObject


15
16
17
# File 'lib/paypal-sdk/permissions/api.rb', line 15

def default_http_header
  super.merge(PERMISSIONS_HTTP_HEADER)
end