mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
.. | ||
aaws.rb | ||
basic.rb | ||
crack.rb | ||
custom_parsers.rb | ||
delicious.rb | ||
google.rb | ||
headers_and_user_agents.rb | ||
logging.rb | ||
nokogiri_html_parser.rb | ||
README.md | ||
rescue_json.rb | ||
rubyurl.rb | ||
stackexchange.rb | ||
stream_download.rb | ||
tripit_sign_in.rb | ||
twitter.rb | ||
whoismyrep.rb |
Examples
-
- Httparty included into poro class
- Uses
get
requests - Transforms query params to uppercased params
-
- Httparty included into poro class
- Uses
get
requests
-
- Creates a custom parser for XML using crack gem
- Uses
get
request
-
- Adds Html as a format
- passed the body of request to Nokogiri
-
- Create an additional parser for atom or make it the ONLY parser
-
- Basic Auth, shows how to merge those into options
- Uses
get
requests
-
- Use the class method of Httparty
- Pass the User-Agent in the headers
- Uses
get
requests
-
- Httparty included into poro class
- Uses
post
requests
-
- Httparty included into poro class
- Uses
post
requests
-
- create a log file and have httparty log requests
-
- Httparty included into poro class
- Creates methods for different endpoints
- Uses
get
requests
-
- Httparty included into poro class
- Example of using
debug_output
to see headers/urls passed - Getting and using Cookies
- Uses
get
requests
-
- Httparty included into poro class
- Basic Auth
- Loads settings from a config file
- Uses
get
requests - Uses
post
requests
-
- Httparty included into poro class
- Uses
get
requests - Two ways to pass params to get, inline on the url or in query hash
-
- Rescue errors due to parsing response
-
Download file using stream mode
- Httparty included into poro class
- Uses
get
requests - Uses
stream_body
mode - Download file without using the memory