Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url : '/jsonp.php',
- jsonp : 'callback',
- data : {"json" : DataJson},
- type : 'GET',
- dataType : "jsonp",
- uri = URI("example.com/jsonp.php?callback=a")
- params = {"json" => formDataJson}
- uri.query = URI.encode_www_form(params)
- res = Net::HTTP.get_response(uri)
- h = JSON.parse(res.body)
Add Comment
Please, Sign In to add comment