Created
August 26, 2012 11:49
-
-
Save slightair/3477997 to your computer and use it in GitHub Desktop.
get Parse objects with Ruby (https://parse.com/docs/rest#queries)
This file contains hidden or 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
require "faraday" | |
conn = Faraday::Connection.new(url: 'https://api.parse.com') do |builder| | |
builder.request :url_encoded | |
builder.adapter :net_http | |
end | |
response = conn.get do |request| | |
request.url '/1/classes/Foo' | |
request.headers = { | |
'X-Parse-Application-Id' => '', | |
'X-Parse-REST-API-Key' => '', | |
} | |
end | |
puts response.body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment