Class: Phaxio::Config
- Inherits:
-
Object
- Object
- Phaxio::Config
- Defined in:
- lib/phaxio/config.rb
Constant Summary collapse
- DEFAULT_API_ENDPOINT =
'https://api.phaxio.com/v2.1/'.freeze
Class Attribute Summary collapse
- .api_endpoint ⇒ Object
-
.api_key ⇒ Object
Your Phaxio API key.
-
.api_secret ⇒ Object
Your Phaxio API secret.
-
.webhook_token ⇒ Object
(also: callback_token)
Your Phaxio webhook token.
Class Attribute Details
.api_endpoint ⇒ Object
28 29 30 |
# File 'lib/phaxio/config.rb', line 28 def api_endpoint @api_endpoint || DEFAULT_API_ENDPOINT end |
.api_key ⇒ Object
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_secret ⇒ Object
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_token ⇒ Object 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 |