1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00
httparty/examples/README.md

67 lines
1.9 KiB
Markdown
Raw Normal View History

## Examples
2014-09-04 20:12:19 -04:00
* [Amazon Book Search](aaws.rb)
2014-09-04 19:22:57 -04:00
* Httparty included into poro class
* Uses `get` requests
2014-09-04 19:22:57 -04:00
* Transforms query params to uppercased params
2014-09-04 19:22:04 -04:00
* [Google Search](google.rb)
* Httparty included into poro class
* Uses `get` requests
2014-09-04 19:22:04 -04:00
* [Crack Custom Parser](crack.rb)
2014-09-04 19:24:08 -04:00
* Creates a custom parser for XML using crack gem
* Uses `get` request
* [Create HTML Nokogiri parser](nokogiri_html_parser.rb)
* Adds Html as a format
* passed the body of request to Nokogiri
2014-09-04 20:12:19 -04:00
* [More Custom Parsers](custom_parsers.rb)
* Create an additional parser for atom or make it the ONLY parser
* [Basic Auth, Delicious](delicious.rb)
* Basic Auth, shows how to merge those into options
* Uses `get` requests
* [Passing Headers, User Agent](headers_and_user_agents.rb)
* Use the class method of Httparty
* Pass the User-Agent in the headers
* Uses `get` requests
* [Basic Post Request](basic.rb)
* Httparty included into poro class
* Uses `post` requests
2014-09-04 20:12:19 -04:00
* [Access Rubyurl Shortener](rubyurl.rb)
* Httparty included into poro class
* Uses `post` requests
* [Add a custom log file](logging.rb)
* create a log file and have httparty log requests
* [Accessing StackExchange](stackexchange.rb)
* Httparty included into poro class
* Creates methods for different endpoints
* Uses `get` requests
* [Accessing Tripit](tripit_sign_in.rb)
* Httparty included into poro class
* Example of using `debug_output` to see headers/urls passed
* Getting and using Cookies
* Uses `get` requests
* [Accessing Twitter](twitter.rb)
* Httparty included into poro class
* Basic Auth
* Loads settings from a config file
* Uses `get` requests
* Uses `post` requests
* [Accessing WhoIsMyRep](whoismyrep.rb)
* Httparty included into poro class
* Uses `get` requests
* Two ways to pass params to get, inline on the url or in query hash
2014-12-12 07:34:03 -05:00
* [Rescue Json Error](rescue_json.rb)
* Rescue errors due to parsing response