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

87 lines
2.4 KiB
Markdown
Raw Normal View History

## Examples
2014-09-04 19:12:19 -05:00
* [Amazon Book Search](aaws.rb)
2014-09-04 18:22:57 -05:00
* Httparty included into poro class
* Uses `get` requests
2014-09-04 18:22:57 -05:00
* Transforms query params to uppercased params
2014-09-04 18:22:04 -05:00
* [Google Search](google.rb)
* Httparty included into poro class
* Uses `get` requests
2014-09-04 18:22:04 -05:00
* [Crack Custom Parser](crack.rb)
2014-09-04 18:24:08 -05:00
* Creates a custom parser for XML using crack gem
* Uses `get` request
2018-10-08 17:14:44 +05:30
* [Create HTML Nokogiri parser](nokogiri_html_parser.rb)
* Adds Html as a format
* passed the body of request to Nokogiri
2018-10-08 17:14:44 +05:30
2014-09-04 19:12:19 -05:00
* [More Custom Parsers](custom_parsers.rb)
* Create an additional parser for atom or make it the ONLY parser
2018-10-08 17:14:44 +05:30
* [Basic Auth, Delicious](delicious.rb)
* Basic Auth, shows how to merge those into options
* Uses `get` requests
2018-10-08 17:14:44 +05:30
* [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
2018-10-08 17:14:44 +05:30
* [Basic Post Request](basic.rb)
* Httparty included into poro class
* Uses `post` requests
2014-09-04 19:12:19 -05:00
* [Access Rubyurl Shortener](rubyurl.rb)
* Httparty included into poro class
* Uses `post` requests
2018-10-08 17:14:44 +05:30
* [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
2018-10-08 17:14:44 +05:30
* [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
2018-10-08 17:14:44 +05:30
* [Accessing Twitter](twitter.rb)
* Httparty included into poro class
* Basic Auth
2018-10-08 17:14:44 +05:30
* Loads settings from a config file
* Uses `get` requests
* Uses `post` requests
2018-10-08 17:14:44 +05:30
* [Accessing WhoIsMyRep](whoismyrep.rb)
* Httparty included into poro class
2018-10-08 17:14:44 +05:30
* Uses `get` requests
* Two ways to pass params to get, inline on the url or in query hash
2014-12-12 15:34:03 +03:00
* [Rescue Json Error](rescue_json.rb)
2016-07-12 22:19:49 +03:00
* Rescue errors due to parsing response
* [Download file using stream mode](stream_download.rb)
* Uses `get` requests
* Uses `stream_body` mode
* Download file without using the memory
2018-10-31 07:56:06 +03:00
* [Microsoft graph](microsoft_graph.rb)
* Basic Auth
* Uses `post` requests
* Uses multipart
* [Multipart](multipart.rb)
* Multipart data upload _(with and without file)_
* [Uploading File](body_stream.rb)
* Uses `body_stream` to upload file
* [Accessing x509 Peer Certificate](peer_cert.rb)
* Provides access to the server's TLS certificate