This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import urllib2 | |
from tweepy import oauth | |
CONSUMER_KEY = '50B4YwaUeSQvyCaFeI3TRg' | |
CONSUMER_SECRET = 'XXXX' | |
RESOURCE_URL = 'https://punchtab.uservoice.com/api/v1/tickets.json' | |
# Setup 2 legged OAuth consumer based on our admin "credentials" | |
consumer = oauth.OAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- this is the usual PunchTab Snippet --> | |
<script type="text/javascript" charset="utf-8"> | |
var _ptq = _ptq || []; | |
var _punchtab_settings = { | |
key: "YOUR KEY", | |
display: "inline", | |
notification: false, | |
earningmap: false | |
}; | |
(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import urllib2 | |
import simplejson | |
import re | |
import time | |
from urlparse import urlparse | |
RESOURCE_URL = 'https://graph.facebook.com/' | |
params = {'access_token':'SOMEHTING'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="textwidget"><div style="width: 180px;font-family: 'Open Sans', sans-serif; font-size: 14px; border: 1px solid #DDD; border-radius: 5px; margin: 0 auto;"> | |
<div style="font-weight: bold;"> | |
<div style="color: #fff; overflow: hidden; clear: both; border-top-left-radius: 5px; border-top-right-radius: 5px;background: url(//static.punchtab.com/nd/images/logo-18.png) no-repeat;background-position: 10px 0;background-color: #434343;padding: 5px;"> | |
<div style="text-align: center; float: left; width: 100%;"> | |
Enter to win a FREE Breville Juicer!!! | |
</div> | |
</div> | |
</div> | |
<div style="clear: both; overflow: hidden; position: relative; height: 270px;"> | |
<div style="margin-top:10px;"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.ptReady = window.ptReady || []; | |
var _gaq = _gaq || []; | |
//this is instantiated when PT is loaded. | |
window.ptReady.push(function () { | |
//add the custom variable for the members so you can segment them. | |
PT.event.bind("user.connected", function (response) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _punchtab_settings = { | |
key: "<YOUR KEY>", | |
display: "tab", | |
activity : {like:200,tweet:200,plusone:200}, | |
position: {x:"left", y:"bottom"}, | |
unbrand: true | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"name" : "tweet", "points" : 100, "date_created" : ISODate("2012-08-13T12:32:43.570Z") | |
"name" : "visit", "points" : 100, "date_created" : ISODate("2012-08-13T12:32:17.977Z") | |
"name" : "tweet", "points" : 100, "date_created" : ISODate("2012-08-12T10:17:37.486Z") | |
"name" : "visit", "points" : 100, "date_created" : ISODate("2012-08-12T10:17:19.734Z") | |
"name" : "tweet", "points" : 100, "date_created" : ISODate("2012-08-11T11:01:48.138Z") | |
"name" : "visit", "points" : 100, "date_created" : ISODate("2012-08-11T11:01:31.839Z") | |
"name" : "tweet", "points" : 100, "date_created" : ISODate("2012-08-10T10:20:25.534Z") | |
"name" : "visit", "points" : 100, "date_created" : ISODate("2012-08-10T10:20:08.958Z") | |
"name" : "tweet", "points" : 100, "date_created" : ISODate("2012-08-09T11:49:04.067Z") | |
"name" : "visit", "points" : 100, "date_created" : ISODate("2012-08-09T11:48:40.439Z") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "name" : "visit", "points" : 100, "date_created" : ISODate("2012-08-14T11:45:48.049Z") } | |
{ "name" : "like", "points" : 100, "date_created" : ISODate("2012-08-14T11:41:43.797Z") } | |
{ "name" : "tweet", "points" : 100, "date_created" : ISODate("2012-08-14T11:41:21.782Z") } | |
{ "name" : "like", "points" : 100, "date_created" : ISODate("2012-08-13T11:15:38.010Z") } | |
{ "name" : "like", "points" : 100, "date_created" : ISODate("2012-08-13T11:15:38.009Z") } | |
{ "name" : "like", "points" : 100, "date_created" : ISODate("2012-08-13T11:15:38.007Z") } | |
{ "name" : "tweet", "points" : 100, "date_created" : ISODate("2012-08-13T11:15:22.821Z") } | |
{ "name" : "visit", "points" : 100, "date_created" : ISODate("2012-08-13T11:14:32.977Z") } | |
{ "name" : "like", "points" : 100, "date_created" : ISODate("2012-08-12T11:00:53.993Z") } | |
{ "name" : "tweet", "points" : 100, "date_created" : ISODate("2012-08-12T11:00:45.127Z") } |