loading...

cURL wrapper around RubyGems.org API

daviducolo profile image Davide Santangelo ・1 min read

I just developed a basic cURL wrapper around RubyGems.org API. Enjoy!

GitHub: https://github.com/davidesantangelo/curl-gems

HELP:


curl -X GET https://curl-gems.herokuapp.com/gems -d 'method=help'

+--------------+-------+---------------------------------------------------------------------+
| METHOD       | PARAM | EXAMPLE                                                             |
+--------------+-------+---------------------------------------------------------------------+
| about        | query | eg. curl -X GET /gems -d 'query=devise' -d 'method=about'           |
| search       | query | eg. curl -X GET /gems -d 'query=rails' -d 'method=search'           |
| owned        | query | eg. curl -X GET /gems -d 'query=davidesantangelo' -d 'method=owned' |
| latest       |       | eg. curl -X GET /gems -d 'method=latest'                            |
| just_updated |       | eg. curl -X GET /gems -d 'method=just_updated'                      |
+--------------+-------+---------------------------------------------------------------------+%     

ABOUT

curl -X GET https://curl-gems.herokuapp.com/gems -d 'query=emailhunter' -d 'method=about'
+-------------------+-----------------------------------------------------------------------------------------------------------------------------+
| ABOUT             | emailhunter                                                                                                                 |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------+
| name              | emailhunter                                                                                                                 |
| downloads         | 40872                                                                                                                       |
| version           | 0.8.1                                                                                                                       |
| version_downloads | 493                                                                                                                         |
| platform          | ruby                                                                                                                        |
| authors           | Davide Santangelo                                                                                                           |
| info              | A tiny ruby wrapper around Email Hunter API. Email Hunter helps sales people reach their targets and increase their sales.  |
| licenses          | ["MIT"]                                                                                                                     |
| metadata          |                                                                                                                             |
| yanked            | false                                                                                                                       |
| sha               | 1a86a67ec808a15bd0e3bf292a0a111a02dfa8a1db4b3a7b1612a8720aae374a                                                            |
| project_uri       | https://rubygems.org/gems/emailhunter                                                                                       |
| gem_uri           | https://rubygems.org/gems/emailhunter-0.8.1.gem                                                                             |
| homepage_uri      |                                                                                                                             |
| wiki_uri          |                                                                                                                             |
| documentation_uri | http://www.rubydoc.info/gems/emailhunter/0.8.1                                                                              |
| mailing_list_uri  |                                                                                                                             |
| source_code_uri   | https://github.com/davidesantangelo/emailhunter                                                                             |
| bug_tracker_uri   |                                                                                                                             |
| changelog_uri     |                                                                                                                             |
| dependencies      |                                                                                                                             |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------+%                     

Posted on by:

daviducolo profile

Davide Santangelo

@daviducolo

developer - dad. APIs specialist, In love with #ruby, #rails and #python - developer at @getchorally

Discussion

markdown guide
 

Very nice project @daviducolo !

For people who like me have a hard time remembering all the curl options, the equivalent HTTPie commands are:

http -b https://curl-gems.herokuapp.com/gems method==help
http -b https://curl-gems.herokuapp.com/gems query==emailhunter method==about