0.02
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ruby library for interacting with v2 of the Crocodoc API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

Crocodoc Ruby

This is a ruby library for interacting with v2 of the Crocodoc API.

Installation

The gem is packaged as the crocodoc-ruby gem, so you could install it with a gemfile + bundler:

gem 'crocodoc-ruby', :require => 'crocodoc'

Usage

crocodoc = Crocodoc::API.new(:token => 'your-api-token')
doc = crocodoc.upload("http://www.example.com/test.doc")
stat = crocodoc.status(doc['uuid'])
sesh = crocodoc.session(doc['uuid'])
url = crocodoc.view(sesh['session'])
crocodoc.delete(doc['uuid'])