Skip to content

Instantly share code, notes, and snippets.

@slightair
Created August 26, 2012 11:49
Show Gist options
  • Save slightair/3477997 to your computer and use it in GitHub Desktop.
Save slightair/3477997 to your computer and use it in GitHub Desktop.
get Parse objects with Ruby (https://parse.com/docs/rest#queries)
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