Solution skill
Bing Search API in Ruby
Complete solution
Guide Bing Search API in Ruby: "Bing Search API - Quick Start" I would want to use a Ruby sdk but those I found are deprecated ex (Rbing) https://github. Use this when you hit exactly this in Bing Search API. Not for different errors or different tools.
TL;DR: "Bing Search API - Quick Start" I would want to use a Ruby sdk but those I found are deprecated ex (Rbing) https://github.com/mikedemers/rbing Do you know a up-to-date Wrapper for Bing Search API (Web only results)? What was asked: Stack Overflow #13660455 (accepted answer, 7 votes, 3 answers): I read the "Bing Search API - Quick Start" but I don't know how to make this http request in Ruby (Weary) How to translate "Streamcontextcreate()" in Ruby?
Fix
"Bing Search API - Quick Start" I would want to use a Ruby sdk but those I found are deprecated ex (Rbing) https://github.com/mikedemers/rbing Do you know a up-to-date Wrapper for Bing Search API (Web only results)? Expected: this specific failure stops.
Turns out Microsoft's documentation was wrong and you're supposed to just use your account key as the password in the request instead of the encoded string. Expected: this specific failure stops.
Details
What was asked: Stack Overflow #13660455 (accepted answer, 7 votes, 3 answers): I read the "Bing Search API - Quick Start" but I don't know how to make this http request in Ruby (Weary) How to translate "Streamcontextcreate()" in Ruby? And What does it mean? What works: [Chris Bui (accepted answer)]: Okay, after an hour of frustration I figured out a way to do it. `` require 'net/http' accountKey [your value] url = 'https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/v1/Web?Query=%27xbox%27&$top=50&$format=json' uri = URI(url) req = Net::HTTP::Get.new(uri.request_uri) req.basic_auth '', accountKey res = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https'){|http| http.request(req) } puts res.body
When to use
You hit exactly this: Bing Search API in Ruby in Bing Search API.
When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.
Compatibility
Bing Search API (versions mentioned here: v1).
Root cause
This code is awful because it's the first version I got working. Basically, ignore everything about the base64 encode because it was giving me an error that only oAuth and basic authentication was supported.
Evidence
On Stack Overflow, the asker wanted: Bing Search API in Ruby. The accepted answer: [Chris Bui (accepted answer)]: Okay, after an hour of frustration I figured out a way to do it. This code is awful because it's the first version I got working. Basically, ignore everything about the base64 encode because it was giving me an error that only oAuth and basic authentication was supported. Turns out Microsoft's documentation was wrong and you're supposed to just use your account key as the password in the request instead of the encoded string. Source: https://stackoverflow.com/questions/13660455
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_forI6J_VDteLIpwuTeNVfA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Bing Search API in Ruby <span>— Vectle</span></a>