title: Download asset file from asset in Azure media service
body: <p>I have an issue. I have an asset in the azure media service. The asset contains an asset file. I would like to know how to download the asset file. I'm using httparty gem for this.</p>
  
  <pre><code>HTTParty.get(https://&lt;host&gt;.restv2.&lt;location&gt;.media.azure.net/api/Files('&lt;file_id&gt;'), headers: headers)
  </code></pre>
  
  <p>The headers have the authorization value. The above request gives the metadata of the asset file but I would like to download the asset file. Can anyone please help. Thanks. I have gone through the below documentation: <a href="https://docs.microsoft.com/en-us/rest/api/media/operations/assetfile" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/media/operations/assetfile</a></p>