lib/phaxio/config.rb in phaxio-2.1.0.pre vs lib/phaxio/config.rb in phaxio-2.1.0
- old
+ new
@@ -11,17 +11,19 @@
# Your Phaxio API secret. This will be used for all interactions with the Phaxio API.
#
# To find your API secret, visit https://console.phaxio.com/api_credentials
attr_accessor :api_secret
- # Your Phaxio callback token. This will be used to verify that callback requests are coming
+ # Your Phaxio webhook token. This will be used to verify that webhook requests are coming
# from Phaxio.
#
- # To find your callback token, visit https://console.phaxio.com/user/callbacks/edit
- attr_accessor :callback_token
+ # To find your webhook token, visit https://console.phaxio.com/user/callbacks/edit
+ attr_accessor :webhook_token
+ alias callback_token webhook_token
+ alias callback_token= webhook_token=
# The Phaxio API endpoint. Users generally shouldn't need to change it.
- # Defaults to https://api.phaxio.com/v2/
+ # Defaults to https://api.phaxio.com/v2.1/
attr_writer :api_endpoint
def api_endpoint
@api_endpoint || DEFAULT_API_ENDPOINT
end