Class: PayPal::SDK::REST::API

Inherits:
Core::API::REST show all
Defined in:
lib/paypal-sdk/rest/api.rb

Constant Summary

Constants inherited from Core::API::REST

Core::API::REST::DEFAULT_HTTP_HEADER, Core::API::REST::DEFAULT_REST_END_POINTS, Core::API::REST::NVP_AUTH_HEADER, Core::API::REST::TOKEN_REQUEST_PARAMS

Constants inherited from Core::API::Base

Core::API::Base::API_MODES, Core::API::Base::DEFAULT_API_MODE

Instance Attribute Summary

Attributes inherited from Core::API::REST

#token_hash

Attributes inherited from Core::API::Base

#http, #service_name, #uri

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Core::API::REST

#api_call, #format_request, #format_response, #handle_response, #log_http_call, #service_endpoint, #set_config, #token, #token=, #token_endpoint, #token_type, #token_uri, #validate_token_hash

Methods inherited from Core::API::Base

#api_call, #api_mode, #default_http_header, #delete, #format_error, #format_request, #format_response, #get, #patch, #post, #put, sdk_library_details, #service_endpoint, #set_config

Methods included from Core::Util::HTTPHelper

#configure_ssl, #create_http_connection, #default_ca_file, #encode_www_form, #handle_response, #http_call, #log_http_call, #map_header_value, #new_http, #url_join

Methods included from Core::Authentication

#add_certificate, #base_credential, #base_credential_type, #credential, #set_config, #third_party_credential

Methods included from Core::Configuration

#config, #set_config

Methods included from Core::Logging

#log_event, #logger, logger, logger=

Constructor Details

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

include Services


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

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

Class Method Details

.user_agentObject


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

def user_agent
  @user_agent ||= "PayPalSDK/PayPal-Ruby-SDK #{PayPal::SDK::REST::VERSION} (#{sdk_library_details})"
end