Skip to content

Faraday090 - #1

Open
AngelAlvarado wants to merge 2 commits into
masterfrom
faraday090
Open

Faraday090#1
AngelAlvarado wants to merge 2 commits into
masterfrom
faraday090

Conversation

@AngelAlvarado

Copy link
Copy Markdown

No description provided.

@AngelAlvarado

Copy link
Copy Markdown
Author

Test passed correctly

Phaxio::Client
making a request
sends the request to Phaxio
handles a single file param
handles multiple file params
uses the configured API key and secret by default
uses the api key specified in the params hash
parses the response JSON and returns the data if the response indicates success
raises an authentication error if the response status is 401
raises a not found error if the response status is 404
raises an invalid request error if the response status is 422
raises a rate limit error if the response status is 429
raises a general error for if the response status is 5XX
raises a general error if the response status is some other value
raises an API connection error if a networking issue occurs
allows unknown errors to bubble up
raises a general error if the status indicates success but the body indicates failure
Phaxio::MimeTypeHelper
gets the mimetype for a filename
gets the extension for a mimetype
Phaxio
sets the api key
sets the api secret
sets the callback token
Phaxio::Resources::Account
getting account information
sends the request to Phaxio
returns an account object
Phaxio::Resources::Callback
validating a callback signature
raises an error if Phaxio::Config.callback_token is unset
signature matches
returns true
signature does not match
returns false
Phaxio::Resources::Fax
creating a fax
makes the request to Phaxio
returns a reference to the fax
retrieving a fax
makes the request to Phaxio
returns a fax
cancelling a fax
makes the request to Phaxio
returns a reference to the fax
listing faxes
sends the request to phaxio
returns a collection of faxes
resending a fax
makes the request to Phaxio
returns a reference to a new fax
deleting a fax
makes the request to Phaxio
returns true
deleting a fax file
makes the request to Phaxio
returns true
downloading a fax file
makes the request to phaxio
returns a file
receiving a test fax
makes the request to Phaxio
returns true
Phaxio::Resources::Fax::Reference
gets the full fax
Phaxio::Resources::PhaxCode
creating a phax code
makes the request to phaxio
returns a PhaxCode instance by default
type is specified to be png
returns a png if type is specified to be png
getting a phax code
makes the request to Phaxio
getting the default phax code with no type specified
returns a PhaxCode instance
getting the default phax code with png type specified
returns a file
getting a particular phax code with no type specified
returns a PhaxCode instance
getting a particular phax code with png type specified
returns a file
Phaxio::Resources::PhoneNumber
provisioning a number
makes the request to Phaxio
returns a phone number object
getting information about a number
makes the request to Phaxio
returns a phone number object
listing numbers
makes the request to Phaxio
returns a collection of phone number objects
releasing a number
sends the request to Phaxio
returns true
Phaxio::Resources::Public::AreaCode
listing area codes available for purchasing numbers
sends the request to Phaxio
returns a collection of available area codes
Phaxio::Resources::Public::Country
getting a list of supported countries
makes the request to Phaxio
returns a collection of supported country resources
Finished in 0.10982 seconds (files took 0.43127 seconds to load)
64 examples, 0 failures

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@AngelAlvarado