Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Griffiths committed Jun 20, 2012
1 parent 0022101 commit 69f4314
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
@@ -0,0 +1,18 @@
# OpenIMP API Client

Client for communicating with OpenIMP APIs, such as that used by Consilidated Independent.

## Hello, World

require 'ci-api'

client = CI::Client.new('http://api.cissme.com/media/v1', {
:username => 'mediaman', :password => 'secretzzz'})

release_by_uri = client.get('/release/upc/012345678')
puts release_by_uri.inspect

release_repo = CI::Repository::Release.new(client)
release_by_find = release_repo.find(:upc => '012345678')
puts release_by_find.inspect

0 comments on commit 69f4314

Please sign in to comment.