Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_json_with_items
- url = URI("https://parseapi.back4app.com/classes/trailer")
- https = Net::HTTP.new(url.host, url.port)
- https.use_ssl = true
- request = Net::HTTP::Post.new(url)
- request["authority"] = "parseapi.back4app.com"
- request["referer"] = "https://transcourt.com/"
- request["Content-Type"] = "text/plain"
- request.body = "{\"where\":{\"status\":{\"$ne\":\"MKTING_USE_ONLY\"}},\"limit\":9999,\"order\":\"status,location,assetDescription\",\"_method\":\"GET\",\"_ApplicationId\":\"COEZJwNNPxP7Y7Try62ykyMKPZdjNs7Pvj4scM8M\",\"_JavaScriptKey\":\"05nA4wrJcPQxTrAoGbxwrpJCS1z0cEfTIzA5qvtv\",\"_ClientVersion\":\"js1.6.14\",\"_InstallationId\":\"01f06ffe-6a62-7d9c-b709-22cb22363959\"}"
- response = https.request(request)
- JSON.parse(response.read_body)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement