0

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....

Babasaheb Gosavi
  • 7,735
  • 1
  • 14
  • 14

0 Answers0