<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -0,0 +1,105 @@
+Videojuicer Core SDK
+====================
+
+The Videojuicer Core SDK is a library for conveniently working with the [Videojuicer](http://videojuicer.com) Core API service.
+
+Drop-in Rails/Merb compatibility
+--------------------------------
+
+The models in this SDK present a familiar ORM-style interface onto all the objects in the remote API. Users of ActiveRecord or DataMapper should feel right at home:
+
+	presentation = Videojuicer::Presentation.new(:title=&gt;&quot;Hello World&quot;)
+	presentation.valid? #=&gt; true
+	presentation.save #=&gt; true
+	
+Validations, creation, updates and deleting records all behave as you'd expect from these libraries.
+
+Getting started
+===============
+
+Getting started is easy. First off, you'll need to be a Videojuicer customer with access to a Videojuicer Seed. You'll also need to  [register for a consumer key](http://api.videojuicer.com/oauth/consumers).
+
+The Core API uses [OAuth](http://oauth.net) as a security and authorisation mechanism, and the SDK acts as an OAuth client.
+
+To get started you will need:
+
+* Your seed name
+* Your username and password
+* Your consumer key
+* Your consumer secret
+
+Authorizing the SDK to work with your account
+---------------------------------------------
+
+	require 'rubygems'
+	require 'videojuicer'
+
+	#
+	@seed_name = your_seed_name
+	@consumer_key = your_consumer_key
+	@consumer_secret = your_consumer_secret
+	#
+	# ----------------------
+	# OAuth Stage 1
+	# ----------------------
+	#
+	# Create a VJ Session
+	@api_session = Videojuicer::Session.new(	
+									:seed_name=&gt;@seed_name,
+									:consumer_key=&gt;@consumer_key,
+									:consumer_secret=&gt;@consumer_secret
+								)
+	# Get the OAuth Request token
+	@request_token = @api_session.get_request_token
+	# Get the authorization URL for your token
+	@auth_url = @api_session.authorize_url(
+              	&quot;oauth_token&quot;					=&gt;	@request_token[&quot;oauth_token&quot;], 
+              	&quot;oauth_token_secret&quot;	=&gt;	@request_token[&quot;oauth_token_secret&quot;],
+								&quot;oauth_callback&quot;			=&gt;	a_url_where_to_which_you_want_the_user_directed_after_authorization
+            	)
+	#
+	# ----------------------
+	# OAuth Stage 2
+	# Direct the user to the @auth_url - they will be asked for their username and password.
+	# ----------------------
+	#
+	# ----------------------
+	# OAuth Stage 3
+	# Exchange the Request token for an Access token
+	# ----------------------
+	#
+	@access_token = @api_session.exchange_request_token(
+                    &quot;oauth_token&quot;					=&gt;	@request_token[&quot;oauth_token&quot;], 
+                    &quot;oauth_token_secret&quot;	=&gt;	@request_token[&quot;oauth_token_secret&quot;]
+                  )
+	#
+	# ----------------------
+	# Authorization complete
+	# Store the access token for later use
+	# ----------------------
+	
+Working with the authorized access token
+----------------------------------------
+
+	@api_session = 	Videojuicer::Session.new(
+										:seed_name=&gt;@seed_name,
+										:consumer_key=&gt;@consumer_key,
+										:consumer_secret=&gt;@consumer_secret,
+										:token=&gt;@access_token[&quot;oauth_token&quot;],
+										:token_secret=&gt;@access_token[&quot;oauth_token_secret&quot;]
+									)
+	# The session is now properly configured and authorized. You can just work within it like so:
+	@api_session.scope do
+		Videojuicer::User.all #=&gt; [&lt;Videojuicer::User ................. &gt;]
+	end
+	
+You may also do one-off setup of the SDK as follows:
+
+	Videojuicer.configure!(
+								:seed_name=&gt;@seed_name,
+								:consumer_key=&gt;@consumer_key,
+								:consumer_secret=&gt;@consumer_secret,
+								:token=&gt;@access_token[&quot;oauth_token&quot;],
+								:token_secret=&gt;@access_token[&quot;oauth_token_secret&quot;]
+							)
+	Videojuicer::User.all #=&gt; [&lt;Videojuicer::User ................. &gt;]
\ No newline at end of file</diff>
      <filename>README.markdown</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d4cf1b9a9adf5216ff1ea99762f001b9d40ff515</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Glegg</name>
    <email>danski@Jet-Jaguar.local</email>
  </author>
  <url>http://github.com/videojuicer/core-sdk/commit/17c1d0fe6eda00d9bcc59a48d0dc1ecb6b99382f</url>
  <id>17c1d0fe6eda00d9bcc59a48d0dc1ecb6b99382f</id>
  <committed-date>2009-10-30T04:48:14-07:00</committed-date>
  <authored-date>2009-10-30T04:48:14-07:00</authored-date>
  <message>added basic README</message>
  <tree>d7028528376b1d5a432b2ec3fa0fe785985f5336</tree>
  <committer>
    <name>Daniel Glegg</name>
    <email>danski@Jet-Jaguar.local</email>
  </committer>
</commit>
