https://github.com/bih/algorithmia
Ruby wrapper for Algorithmia.com
https://github.com/bih/algorithmia
Last synced: about 1 year ago
JSON representation
Ruby wrapper for Algorithmia.com
- Host: GitHub
- URL: https://github.com/bih/algorithmia
- Owner: bih
- License: mit
- Created: 2015-03-14T14:20:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-05T19:34:20.000Z (about 11 years ago)
- Last Synced: 2025-02-23T21:07:42.706Z (over 1 year ago)
- Language: Ruby
- Size: 204 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
- License: LICENSE.txt
Awesome Lists containing this project
README

# Ruby Wrapper for Algorithmia
Looks very interesting, so I quickly threw together an awesome Ruby wrapper to interact with [Algorithmia.com](http://algorithmia.com).
### Installation
```
# By your command line.
$ gem install algorithmia
# Alternatively, through your Gemfile.
gem 'algorithmia'
```
### Documentation
Keeping it simple for now. But it's super easy to make a request to Algorithmia:
```ruby
require "algorithmia"
# Your API key. Get it from your dashboard on Algorithmia.com
Algorithmia.api_key = "[INSERT API KEY]"
query = Algorithmia.call("kenny/Factor", 29)
# Example for algorithm: https://algorithmia.com/algorithms/kenny/Factor
# => #0.035231213000000004, :result=>[29]}>
query.result # => [29]
query.duration # => 0.035231213000000004
```
See full [Algorithmia.com API docs by clicking here](https://algorithmia.com/docs/api#curl).
### Who made this?
[Bilawal Hameed](http://github.com/bih). Released freely under the [MIT License](http://bih.mit-license.org/).