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.1/'.freeze

Class Attribute Summary collapse

Class Attribute Details

.api_endpointObject


28
29
30
# File 'lib/phaxio/config.rb', line 28

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

.webhook_tokenObject Also known as: callback_token

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

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


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

def webhook_token
  @webhook_token
end