Skip to content

Commit f76fdf2

Browse files
authored
Merge pull request #34 from yujideveloper/update-api-reference-link-for-v2.1
Update the link to the API reference for v2.1
2 parents 60b32b0 + fcb8bc1 commit f76fdf2

8 files changed

Lines changed: 22 additions & 22 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/phaxio/phaxio-ruby.svg?branch=master)](https://travis-ci.org/phaxio/phaxio-ruby)
44

5-
A Ruby gem for interacting with the [Phaxio API](https://www.phaxio.com/docs/api/v2).
5+
A Ruby gem for interacting with the [Phaxio API](https://www.phaxio.com/docs/api/v2.1).
66

77
## Installation
88

lib/phaxio/resources/account.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class << self
2222
# Any parameters to send to Phaxio. This action does not have any unique parameters.
2323
# @return [Phaxio::Resources::Acount] Your account information.
2424
# @raise [Phaxio::Error::PhaxioError]
25-
# @see https://www.phaxio.com/docs/api/v2/account/status
25+
# @see https://www.phaxio.com/docs/api/v2.1/account/status
2626
def get params = {}
2727
response = Client.request :get, account_status_endpoint, params
2828
response_record response

lib/phaxio/resources/callback.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module Phaxio
22
module Resources
33
# Provides utilities for working with callbacks.
4-
# @see https://www.phaxio.com/docs/api/v2/faxes/send_callback
5-
# @see https://www.phaxio.com/docs/api/v2/faxes/receive_callback
4+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/send_webhook
5+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/receive_webhooks
66
class Callback
77
DIGEST = OpenSSL::Digest.new('sha1')
88
private_constant :DIGEST

lib/phaxio/resources/fax.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class << self
120120
# @return [Phaxio::Resource::Collection<Phaxio::Resources::Fax>]
121121
# The collection of faxes matching your request.
122122
# @raise [Phaxio::Error::PhaxioError]
123-
# @see https://www.phaxio.com/docs/api/v2/faxes/list_faxes
123+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/list_faxes
124124
def list params = {}
125125
response = Client.request :get, faxes_endpoint, params
126126
response_collection response
@@ -159,8 +159,8 @@ def list params = {}
159159
# @return [Phaxio::Resources::Fax]
160160
# The created fax.
161161
# @raise [Phaxio::Error::PhaxioError]
162-
# @see https://www.phaxio.com/docs/api/v2/faxes/create_and_send_fax
163-
# @see https://www.phaxio.com/docs/api/v2/faxes/batching
162+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/create_and_send_fax
163+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/batching
164164
def create params = {}
165165
response = Client.request :post, faxes_endpoint, params
166166
response_reference response
@@ -174,7 +174,7 @@ def create params = {}
174174
# A hash of parameters to send to Phaxio. This action takes no unique parameters.
175175
# @return [Phaxio::Resource::Fax] The requested fax.
176176
# @raise [Phaxio::Error::PhaxioError]
177-
# @see https://www.phaxio.com/docs/api/v2/faxes/get_fax
177+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/get_fax
178178
def get id, params = {}
179179
response = Client.request :get, fax_endpoint(id.to_i), params
180180
response_record response
@@ -191,7 +191,7 @@ def get id, params = {}
191191
# @return [Phaxio::Resources::Fax::Reference]
192192
# A reference to the canceled fax.
193193
# @raise [Phaxio::Error::PhaxioError]
194-
# @see https://www.phaxio.com/docs/api/v2/faxes/cancel
194+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/cancel
195195
def cancel id, params = {}
196196
response = Client.request :post, cancel_fax_endpoint(id), params
197197
response_reference response
@@ -207,7 +207,7 @@ def cancel id, params = {}
207207
# @return [Phaxio::Resources::Fax::Reference]
208208
# A reference to the resent fax.
209209
# @raise [Phaxio::Error::PhaxioError]
210-
# @see https://www.phaxio.com/docs/api/v2/faxes/resend
210+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/resend
211211
def resend id, params = {}
212212
response = Client.request :post, resend_fax_endpoint(id), params
213213
response_reference response
@@ -221,7 +221,7 @@ def resend id, params = {}
221221
# parameters.
222222
# @return [true]
223223
# @raise [Phaxio::Error::PhaxioError]
224-
# @see https://www.phaxio.com/docs/api/v2/faxes/delete_fax
224+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/delete_fax
225225
def delete id, params = {}
226226
Client.request :delete, fax_endpoint(id), params
227227
true
@@ -235,7 +235,7 @@ def delete id, params = {}
235235
# parameters.
236236
# @return [true]
237237
# @raise [Phaxio::Error::PhaxioError]
238-
# @see https://www.phaxio.com/docs/api/v2/faxes/delete_fax_file
238+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/delete_fax_file
239239
def delete_file id, params = {}
240240
Client.request :delete, fax_file_endpoint(id), params
241241
true
@@ -252,7 +252,7 @@ def delete_file id, params = {}
252252
# @return [File]
253253
# The requested fax file.
254254
# @raise [Phaxio::Error::PhaxioError]
255-
# @see https://www.phaxio.com/docs/api/v2/faxes/get_fax_file
255+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/get_fax_file
256256
def file id, params = {}
257257
Client.request :get, fax_file_endpoint(id), params
258258
end
@@ -269,7 +269,7 @@ def file id, params = {}
269269
# number. Default is the public Phaxio phone number.
270270
# @return [true]
271271
# @raise [Phaxio::Error::PhaxioError]
272-
# @see https://www.phaxio.com/docs/api/v2/faxes/test_receive
272+
# @see https://www.phaxio.com/docs/api/v2.1/faxes/test_receive
273273
def test_receive params = {}
274274
Client.request :post, faxes_endpoint, test_receive_params(params)
275275
true

lib/phaxio/resources/phax_code.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class << self
2828
# file instead of a PhaxCode object.
2929
# @return [Phaxio::Resources::PhaxCode | File] The created PhaxCode
3030
# @raise [Phaxio::Error::PhaxioError]
31-
# @see https://www.phaxio.com/docs/api/v2/phaxcodes/create_phax_code
31+
# @see https://www.phaxio.com/docs/api/v2.1/phaxcodes/create_phax_code
3232
def create params = {}
3333
endpoint = case (params[:type] || params['type']).to_s
3434
when 'png' then phax_codes_endpoint_png
@@ -48,7 +48,7 @@ def create params = {}
4848
# PhaxCode object.
4949
# @return [Phaxio::Resources::PhaxCode | File]
5050
# @raise [Phaxio::Error::PhaxioError]
51-
# @see https://www.phaxio.com/docs/api/v2/phaxcodes/retrieve_phax_code
51+
# @see https://www.phaxio.com/docs/api/v2.1/phaxcodes/retrieve_phax_code
5252
def get params = {}
5353
identifier = params[:identifier] || params['identifier']
5454
endpoint = case (identifier)

lib/phaxio/resources/phone_number.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class << self
4444
# - *callback_url* [String] - A callback URL that we'll post to when a fax is received by this number. This will override the global receive callback URL, if you have one specified.
4545
# @return [Phaxio::Resources::PhoneNumber] The newly provisioned number.
4646
# @raise [Phaxio::Error::PhaxioError]
47-
# @see https://www.phaxio.com/docs/api/v2/phone_numbers/provision
47+
# @see https://www.phaxio.com/docs/api/v2.1/phone_numbers/provision
4848
def create params = {}
4949
response = Client.request :post, phone_numbers_endpoint, params
5050
response_record response
@@ -58,7 +58,7 @@ def create params = {}
5858
# A hash of parameters to send to Phaxio. This action has no unique parameters.
5959
# @return [Phaxio::Resources::PhoneNumber] The requested number.
6060
# @raise [Phaxio::Error::PhaxioError]
61-
# @see https://www.phaxio.com/docs/api/v2/phone_numbers/get_number
61+
# @see https://www.phaxio.com/docs/api/v2.1/phone_numbers/get_number
6262
def get phone_number, params = {}
6363
response = Client.request :get, phone_number_endpoint(phone_number), params
6464
response_record response
@@ -76,7 +76,7 @@ def get phone_number, params = {}
7676
# @return [Phaxio::Resource::Collection<Phaxio::Resources::PhoneNumber>]
7777
# A collection of phone numbers.
7878
# @raise [Phaxio::Error::PhaxioError]
79-
# @see https://www.phaxio.com/docs/api/v2/phone_numbers/list
79+
# @see https://www.phaxio.com/docs/api/v2.1/phone_numbers/list
8080
def list params = {}
8181
response = Client.request :get, phone_numbers_endpoint, params
8282
response_collection response
@@ -90,7 +90,7 @@ def list params = {}
9090
# A hash of parameters to send to Phaxio. This action has no unique parameters.
9191
# @return true
9292
# @raise [Phaxio::Error::PhaxioError]
93-
# @see https://www.phaxio.com/docs/api/v2/phone_numbers/release
93+
# @see https://www.phaxio.com/docs/api/v2.1/phone_numbers/release
9494
def delete phone_number, params = {}
9595
Client.request :delete, phone_number_endpoint(phone_number), params
9696
true

lib/phaxio/resources/public/area_code.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class << self
4646
# @return [Phaxio::Resource::Collection<Phaxio::Resources::AreaCode>] A collection of
4747
# AreaCode objects.
4848
# @raise [Phaxio::Error::PhaxioError]
49-
# @see https://www.phaxio.com/docs/api/v2/public/list_area_codes
49+
# @see https://www.phaxio.com/docs/api/v2.1/public/list_area_codes
5050
def list params = {}
5151
response = Client.request :get, available_area_codes_endpoint, params
5252
AreaCode.response_collection response

lib/phaxio/resources/public/country.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class << self
3636
# @return [Phaxio::Resource::Collection<Phaxio::Resources::Country>]
3737
# A collection of supported countries.
3838
# @raise Phaxio::Error::PhaxioError
39-
# @see https://www.phaxio.com/docs/api/v2/public/list_countries
39+
# @see https://www.phaxio.com/docs/api/v2.1/public/list_countries
4040
def list params = {}
4141
response = Client.request :get, supported_countries_endpoint, params
4242
Country.response_collection response

0 commit comments

Comments
 (0)