Class: Phaxio::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/phaxio/config.rb

Constant Summary collapse

DEFAULT_API_ENDPOINT =
'https://api.phaxio.com/v2/'.freeze

Class Attribute Summary collapse

Class Attribute Details

.api_endpointObject


26
27
28
# File 'lib/phaxio/config.rb', line 26

def api_endpoint
  @api_endpoint || DEFAULT_API_ENDPOINT
end

.api_keyObject

Your Phaxio API key. This will be used for all interactions with the Phaxio API.

To find your API key, visit console.phaxio.com/api_credentials


9
10
11
# File 'lib/phaxio/config.rb', line 9

def api_key
  @api_key
end

.api_secretObject

Your Phaxio API secret. This will be used for all interactions with the Phaxio API.

To find your API secret, visit console.phaxio.com/api_credentials


14
15
16
# File 'lib/phaxio/config.rb', line 14

def api_secret
  @api_secret
end

.callback_tokenObject

Your Phaxio callback token. This will be used to verify that callback requests are coming from Phaxio.

To find your callback token, visit console.phaxio.com/user/callbacks/edit


20
21
22
# File 'lib/phaxio/config.rb', line 20

def callback_token
  @callback_token
end