Skip to content

Instantly share code, notes, and snippets.

@pbapi
Created December 19, 2011 18:02
Show Gist options
  • Save pbapi/1498187 to your computer and use it in GitHub Desktop.
Save pbapi/1498187 to your computer and use it in GitHub Desktop.
PeopleBrowsr - Kred Influence API
require 'net/http'
app_id = "[app_id]"
app_key = "[app_key]"
source = "twitter"
term = "Pepsi"
first = "1323466328"
last = "1318195928"
count = "30"
url = 'http://api.peoplebrowsr.com/kredinfluence?'
url = url + 'app_id=' + app_id
url = url + '&app_key=' + app_key
url = url + '&term=' + term
url = url + '&source=' + source
url = url + "&first=" + first
url = url + "&last=" + last
url = url + "&count=" + count
uri = URI.parse(url)
request = Net::HTTP::Get.new(uri.path+'?'+uri.query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment