Skip to content

Instantly share code, notes, and snippets.

@tokland
Last active December 13, 2015 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tokland/4973374 to your computer and use it in GitHub Desktop.
Save tokland/4973374 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# Requirements: echoprint-codegen, curl, js-beautify
#
set -e -u -o pipefail
SERVER="http://developer.echonest.com/api/v4/song/identify"
API_KEY=FILDTEOIK2HBORODV
FILE=$1
echoprint-codegen "$FILE" |
curl -sS -F "api_key=$API_KEY" -F "query=@-" "$SERVER" |
js-beautify -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment