Following code downloads json file from url. I want to convert it to ruby code
$response = file_get_contents($url, false, stream_context_create(array(
"http" => array(
"method" => "GET",
"header" => "Authorization: ". $authorizationHeader ."\r\n".
"Content-Type: application/x-www-form-urlencode\r\n"
)
not able to find suitable way to do it in ruby. Any help on this please....