Skip to content

Instantly share code, notes, and snippets.

@0xabad1dea
Created July 4, 2012 00:41
Show Gist options
  • Save 0xabad1dea/3044399 to your computer and use it in GitHub Desktop.
Save 0xabad1dea/3044399 to your computer and use it in GitHub Desktop.
Trivial skeleton script for seeing Vibe messages outside of your range
#!/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