Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 56cf6eaebd
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 26 lines (16 sloc) 0.626 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# Sample of how to use peekyou_api

require 'api.rb'

d = Peekyou.new
#set your key here
d.set_key("YOUR API KEY GOES HERE")
#Frequency is optional
d.set_frequency(1)

#set your app_id here if you are using consumer audience API
d.set_consumer("YOUR APP ID GOES HERE")
# @param url
# @param type (only JSON or XML)
# the first parameter is your url and second parameter is the format the output will be returned

#calling social audience API
puts d.social_audience_info("http://twitter.com/michaelhussey234234","json")
#calling consumer audience API
puts d.consumer_audience_info("http://twitter.com/joshmackey","xml")





Something went wrong with that request. Please try again.