Project

7d

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Generates signed URLs for the 7digital API. Useful for piping between various other command line tools.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9.1
>= 10.4.2, ~> 10.4
>= 3.2.0, ~> 3.2
~> 0.29.1

Runtime

~> 0.4.7
>= 2.1.2, ~> 2.1
 Project Readme

7digital CLI

Build Status

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

Installation

Currently in pre-release, you can install the latest build from RubyGems:

gem install 7d --pre

You'll need to set the following environment variables:

SEVENDIGITAL_CONSUMER_KEY
SEVENDIGITAL_CONSUMER_SECRET
SEVENDIGITAL_TOKEN
SEVENDIGITAL_TOKEN_SECRET

Usage

$ SEVENDIGITAL_CONSUMER_KEY='YOUR_KEY_HERE' SEVENDIGITAL_CONSUMER_SECRET='YOUR_SECRET_HERE' 7d sign clip --trackid=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 7d sign clip --trackid=1234 | xargs -n 1 curl -so /dev/null --write-out "Status: %{http_code}, TTFB: %{time_starttransfer}\n"