Created
July 4, 2012 00:41
-
-
Save 0xabad1dea/3044399 to your computer and use it in GitHub Desktop.
Trivial skeleton script for seeing Vibe messages outside of your range
This file contains 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
#!/usr/bin/ruby | |
# trivial skeleton script for seeing Vibe messages that have a location and range that excludes you | |
# tested july 3rd, 2012 | |
require 'rubygems' | |
require 'rest_client' | |
url = "https://v.zami.com/vibe_getsayings16-W4czD.php" | |
# new york city | |
lat = 40.664167 | |
long = -73.938611 | |
# I think this is in miles | |
distance = 20 | |
response = RestClient.post(url, :version => '1.6', :lat => lat, :long => long, :distance => distance, :last_msg_id => '0', :last_reply_id => '0') | |
puts response.to_str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment