7digital CLI
============

A command-line tool for interacting with the 7digital API.

Installation
------------

You'll need to set the `SEVENDIGITAL_CONSUMER_KEY` and `SEVENDIGITAL_CONSUMER_SECRET` environment variables to whatever they should be.

Usage
-----

Until I get round to bundling this up as a gem you can do something along the lines of the following:

```
$ SEVENDIGITAL_CONSUMER_KEY='YOUR_KEY_HERE' SEVENDIGITAL_CONSUMER_SECRET='YOUR_SECRET_HERE' bin/7d sign clip 1234
```

7digital CLI
============

A command-line tool for interacting with the 7digital API.

Installation
------------

You'll need to set the `SEVENDIGITAL_CONSUMER_KEY` and `SEVENDIGITAL_CONSUMER_SECRET` environment variables to whatever they should be.

Usage
-----

Until I get round to bundling this up as a gem you can do something along the lines of the following:

```
$ SEVENDIGITAL_CONSUMER_KEY='YOUR_KEY_HERE' SEVENDIGITAL_CONSUMER_SECRET='YOUR_SECRET_HERE' bin/7d sign clip 1234
```

Other than just being able to sign calls to 7digital endpoints you might find it useful to pipe the ouput around–here we are using it to measure the time to first byte for multiple requests:

```
$ seq 10 | xargs -I z bin/7d sign clip 1234 | xargs -n 1 curl -so /dev/null --write-out "Status: %{http_code}, TTFB: %{time_starttransfer}\n"
```

Add an example for something practical you can do
Add an example for something practical you can do
