Skip to content

Instantly share code, notes, and snippets.

@RichardBlair
RichardBlair / install_tools.sh
Created May 29, 2012 23:31
Install dev tools on ubuntu
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install git-core git-gui git-doc redis-server mysql-server mongodb postresql ruby-full libmysqlclient15-dev libxml2-dev libxslt-dev python-setuptools python-dev
#install pip and virtualenv
sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper
#setup virtualenvs
mkdir ~/virtualenvs
@RichardBlair
RichardBlair / account.json
Created January 9, 2012 18:54
/api/v1/account/
{
"objects":[
{
"analytics_css":"/media/uploads/global/analytics_css/19-analytics-ryyqsem6b7.css",
"analytics_domain":"griubre.com",
"facebook_iframe":"/api/v1/account/19/oauthiframe/facebook/",
"id":"19",
"linkedin_iframe":"/api/v1/account/19/oauthiframe/linkedin/",
"marketing_css":null,
"marketing_domain":"swixapp.com",
{
"subtotal_price":"19.00",
"buyer_accepts_marketing":true,
"total_tax":"0.00",
"shipping_lines":[
{
"price":"20.00",
"code":"International Shipping",
"title":"International Shipping"
}
@RichardBlair
RichardBlair / offer.17.clickdata.json
Created September 20, 2011 20:47
/api/v1/brand/55/offer/17/clickdata/
{
"delicious":{
"click_data":[
{
"clicks":"211",
"measured_at":"2011-07-12"
},
{
"clicks":"158",
"measured_at":"2011-07-10"
@RichardBlair
RichardBlair / offer.17.revbyday.json
Created September 20, 2011 19:13
revenue by day
{
"revenue":[
{
"measured_at":"2011-07-12",
"sales":40
},
{
"measured_at":"2011-07-14",
"sales":40
},
@RichardBlair
RichardBlair / offer.17.offertransaction.20.json
Created September 20, 2011 18:49
/api/v1/brand/55/offer/17/offertransaction/20/
{
"amount_in_cents":1000,
"created_at":"2011-07-10T00:00:00",
"id":"20",
"offer":"/api/v1/brand/55/offer/17/",
"referrer":"twitter"
}
@RichardBlair
RichardBlair / offer.17.offertransaction.json
Created September 20, 2011 18:48
/api/v1/brand/55/offer/17/offertransaction/
{
"meta":{
"limit":20,
"next":null,
"offset":0,
"previous":null,
"total_count":103
},
"objects":[
{
@RichardBlair
RichardBlair / brand.55.offer.json
Created September 20, 2011 18:25
/api/v1/brand/55/offer/
{
"meta":{
"limit":100,
"next":null,
"offset":0,
"previous":null,
"total_count":16
},
"objects":[
{
@RichardBlair
RichardBlair / brand.55.offer.17.json
Created September 20, 2011 18:22
api/v1/brand/55/offer/17
{
"activity_name":"vriuuhvriu",
"brand":"/api/v1/brand/55/",
"click_data":"/api/v1/brand/55/offer/17/clickdata/",
"conversion":"/api/v1/brand/55/offer/17/conversion/",
"conversions":103,
"created_at":"2011-06-29T11:25:57",
"default_value_in_cents":0,
"end_date":"2011-07-15T00:00:00",
"id":"17",
@RichardBlair
RichardBlair / example.seriesdata.json
Created July 5, 2011 19:55
/api/v1/brand/55/pod/1/seriesdata/?format=json&username=your_username&api_key=your_apikey&enddate=2011-05-31&startdate=2011-05-01&graph=highcharts&fields=followers
[
{
"data":[
[
1305694800000,
3
],
[
1305781200000,
4