Table of Contents

000000book API Docs

**BETA NOTICE**

The site is undergoing active development, and this documentation is incomplete. Pleaes email us if you have questions or run into problems. You can also join the new GML mailing list

Contact us via email: mailto:info@000000book.com Or hit us up on IRC: irc://irc.freenode.net/#fatlab

What is Graffiti Markup Language (GML)?

Graffiti Markup Language is an XML-based format for representing the motion data of a graffiti writer (or other gestures)

GML is currently used to capture and replay the motion data from graffiti applications like Graffiti Analysis, LASER Tag and the EyeWriter that have been developed by the Graffiti Research Lab/FAT Lab and openFrameworks teams.

An incomplete list of other applications using GML: http://000000book.com/apps

Downloading GML

A GML document is composed of any number of 'drawings', which have 'strokes' composed of (x, y, time) tuples.

The authoritative GML format spec is located at http://fffff.at/gml. See also: Minimum GML Requirements

000000book.com (blackbook) is meant as an open repository for GML data, and any application can upload & download GML from the site freely.

Downloading GML:

Other handy API access points

Ready & Drawing GML

Code: Drawing (Javascript, Flash, C++, Processing etc)

Uploading GML to 000000book.com

Sending your application's GML data to blackbook is simple, and authenticating or registering your app is optional

Send an HTTP POST request to http://000000book.com/data with a data payload containing:

* GML (text)* [the complete GML data, required; this will be validated for required GML fields, e.g. at least one x/y point; maximum functional size is approx. 1MB]

Optional Fields

The following fields can be specified either in the GML *or* via HTTP POST to #000000book, which will write them into the GML for you.

The “uniqueKey” payload can also be provided in order to uniquely identify the uploading device, e.g. an iPhone. User's can later pair their 000000book account with a specified uniqueKey (see “Device Pairing” below).

Getting started with curl

If you are on Mac OS or Linux you can crack open a terminal and get started uploading GML just using `curl`:

curl -A curlwriter -d application=curlwriter&gml="<gml><pt><x>1</x><y>1</y><t>1</t></pt></gml>" http://000000book.com/data

Advanced Blackbook-Fu

Device Pairing

Application Registration & Embedding

User Authentication