我正在使用 Amazon Ads API,它給了我一個 URL 作為回應...在瀏覽器中打開那個 URL,給我一個我需要的檔案...問題是我不知道如何從 URL 中獲取檔案紅寶石...誰能幫幫我???
謝謝
uj5u.com熱心網友回復:
require 'open-uri'
contents = URI.open("https://hello.mdominiak.com").read
檔案: https ://ruby-doc.org/stdlib-3.1.2/libdoc/open-uri/rdoc/OpenURI.html
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/527384.html
上一篇:如何在顫振中從JSON中獲取價值
