The CodeWitter API

The API is very simple REST-based.

Get a witter api_key

All clients of the API need an api_key, in the good tradition of the Google APIs. These are obtained by registering here.

Create a witter link

To create a witter link http://www.codewitter.com/cw/quote?kind=view&lang=scala&api_key=TEST&email=anonymous+Joe&css=dark&kind=view&script= http://www.codewitter.com/cw/quote?kind=view&lang=scala&api_key=TEST&k=ay03FiENszNA0PVlbimAJV2InwXY=&ok=&css=dark&script=def%20f(x:Int)%20%3D%20x%2B2 The parameters are:

Capture a witter link(to embed CodeWitter capture screens)

http://www.codewitter.com/cw/capture?api_key=APIKEY&email=EMAIL&css=dark&kind=view&script=SCRIPT The parameters are:

Internal - generated links

You can't use these directly, they are here as a reference: http://www.codewitter.com/cw/popup?lang=LANG&ok=KEY&css=dark&script=SCRIPT http://www.codewitter.com/cw/view?lang=LANG&ok=KEY&css=dark&script=SCRIPT http://www.codewitter.com/cw/embed?lang=LANG&ok=KEY&css=dark&script=SCRIPT http://www.codewitter.com/cw/interact?lang=LANG&ok=KEY&css=dark&script=SCRIPT Generic service links: http://www.codewitter.com/cw/register http://www.codewitter.com/cw/start TODO http://www.codewitter.com/cw/start?lang=java&email=Joe@anonymous&css=dark&script=1 http://www.codewitter.com/cw/create?api_key=APIKEY&k=USERK&css=dark&kind=view&script=SCRIPT

Use cases