curb

    0熱度

    1回答

    我試圖從使用nokogiri和遏制網站抓取信息,但我似乎無法找到正確的名稱/標題,以找出在哪裏刮(我試圖刮api鍵,這是在該代碼的底部爲「xxxxxxx」),甚至如何,請幫助,謝謝。 :) 的HTML代碼低於: <body class="html not-front logged-in no-sidebars page-app page-app- page-app-8383900 page-app

    0熱度

    2回答

    我正在使用Rails應用程序將我在Amazon S3上存儲的Word文件發送到convertapi以轉換爲PDF。我正在使用paperclip gem來管理文件,並使用curb gem來進行實際的請求。 # model with property has_attached_file :attachment def convert_docx_to_pdf base = "https://

    0熱度

    1回答

    我一直在負責重建this javascript file到Ruby,但我得到的是沒有意義的(對我)一個響應的錯誤是: {"api_error_code"=>1, "message"=>"Parameter 'username_or_email' is required.", "code"=>"API_ERROR", "target"=>"<webapp.resources.user_session

    0熱度

    1回答

    我遇到問題,無法獲取以下任何方法(1,2和3)。 require "curb" @username = 'user' @api_key = 'key' @base_uri = 'https://url.com' @offer_id = 999 @login_method = "login=#{@username}&api_key=#{@api_key}" @method_3_url

    0熱度

    1回答

    我正在接觸形式的Rails應用程序,當試圖bundle install我得到了寶石,我從來沒有加入到Gemfile中的錯誤。一些神祕的curb gem缺少一些圖書館或其他東西。 我一直在尋求答案,但無法弄清楚他們在說什麼,因爲他們的平臺。我用Cloud9linux環境與rails 4.2.0 也許你們有一些想法如何解決這個問題?波紋管是完整的錯誤信息。 Gem::Ext::BuildError:

    0熱度

    1回答

    我試圖與路邊的寶石相當於捲曲電話: curl \ -F 'name=My new CA' \ -F 'subtype=CUSTOM' \ -F 'description=People who bought from my website' \ -F 'access_token=<ACCESS_TOKEN>' \ https://graph.face

    0熱度

    1回答

    我正在嘗試使用'路邊'寶石向我們的清漆盒發送「PURGE」請求,問題在於它似乎無法正常工作。 我不知道它是否因爲沒有在我們的清漆盒中實現而失敗(它應該是)或者因爲路緣沒有發送請求作爲清除,而是作爲get。 下面是實際發出請求的功能: def make_request_of (request_method) self.curl = Curl::Easy.new(self.uri) do

    0熱度

    3回答

    我在安裝路邊時遇到問題。當我在控制檯輸入: sudo gem install curb 它返回我以下錯誤: Fetching: curb-0.8.6.gem (100%) Building native extensions. This could take a while... ERROR: Error installing curb: ERROR: Failed to bui

    0熱度

    2回答

    我有一個可笑的困難時期做一些簡單的推測... 我試圖運行紅寶石簡單的POST請求。我已經看過遏制,typhoeus,休息客戶端等...該發佈請求具有基本身份驗證(通過API密鑰)和兩個參數... 我有下面的捲曲形式寫出的命令,這完美的作品。 curl -X POST https://api.com/v1 -u any_string:abc123 -d var1="help" -d var2="me

    1熱度

    1回答

    我已經成功地通過使用POST方法API這樣創造了新的紀錄(使用Curl::PostField) curl_post_fields = [ Curl::PostField.content('first_name', first_name), Curl::PostField.content('last_name', last_name),] contact = Curl