Advertisement
Guest User

Untitled

a guest
Jan 28th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.33 KB | None | 0 0
  1. require 'uri'
  2. require 'net/http'
  3.  
  4. g_api = "http://www.googleapis.com/"
  5. tableId = 'STRING CONTAINING TABLE ID'
  6. styleId = '4'
  7. key = 'STRING CONTAINING MY FUSION TABLES API KEY'
  8.  
  9. google_api = Net::HTTP.new 'www.googleapis.com'
  10. get_req = google_api.get "/fusiontables/v1/tables/#{tableId}/styles?key=#{key}"
  11.  
  12. puts get_req.body
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement