Seeqpod digest and curl

Send Snippet To: Save this snippet to Code Collector Pro -- view all phact's snippets
language: Bash
license: Other

Code for Snippet:

                
#! /bin/bash
 
API_UID=d7b16542d2a8f970d277963b44a43713080f3444
API_KEY=2b56484b866320f8da64070af5588cfef0730f7b
BASE_URI="http://www.seeqpod.com"
 
EPOCH=`date +%s`
SEARCH="/api/v0.2/music/search/nirvana/"
SIG_SEARCH=$SEARCH$EPOCH
 
HASH=`echo -n "$SIG_SEARCH" | openssl dgst -SHA1 -hmac $API_KEY`
 
curl -H "Seeqpod-uid:"$API_UID -H "Seeqpod-timestamp:"$EPOCH -H "Seeqpod-call-signature:"$HASH $BASE_URI$SEARCH
 
comments powered by Disqus

Info

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 823
Date Added: 2009-04-22 10:06:49
Last Modified: 0000-00-00 00:00:00

Web Analytics