Created
September 20, 2011 20:29
-
-
Save benben/1230217 to your computer and use it in GitHub Desktop.
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/env ruby | |
# encoding: UTF-8 | |
require 'rubygems' | |
require 'rest_client' | |
API_KEY = '...' | |
response = RestClient.get 'http://apileipzig.de/api/v1/district/streets', :params => {:api_key => API_KEY, :limit => 10} | |
puts response.to_str.encoding | |
# => US-ASCII |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment