bing-api

:1 is being appended to my ajax requests with jQuery

限于喜欢 提交于 2019-12-13 07:08:57
问题 I'm trying to access an external API from my website, and for some strange reason I am getting an ':1' appended to my ajax requests. Everything else seems to be right. BTW, I'm trying to access the Bing Images API using jQuery. $.get('http://api.bing.net/json.aspx?callback=?', { AppId : <MYAPPID>, Query : 'help', Sources : 'Image' }, imageResponseHandler, 'json' ); I get this URL, which throws a syntax error in chrome console: http://api.bing.net/json.aspx?callback=jsonp1329103936801&AppId

Using the Searchservice from Bing Maps in WP7

独自空忆成欢 提交于 2019-12-12 03:34:03
问题 I used this to locate an address on Bing Maps on WP7 using the emulator. The site mentions searchservice, which is something I want to try out and implement. However, the method seems to be different, in the sense that the query parameters are different and so is the way to query it. Can anyone help me find resources that give me a (if possible) step-by-step list of how to achieve or implement the searchservice. I have been through the official MSDN pages and they're quite useless. For my

Bing-Rest-Api Get Route from Response.ResourceSets

馋奶兔 提交于 2019-12-11 20:14:18
问题 I'm doing a REST call to Bing-Driving Api: http://dev.virtualearth.net/REST/V1/Routes/Driving?o=json&wp.1=-22.57041,17.11387&wp.2=-22.57623,17.06172&key=... After de-serialising the response: DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(Response)); r = ser.ReadObject(stream) as Response; I'm supposed to get the Route-object with: var route = (r.ResourceSets[0].Resources[0] as Route) But in my case r.ResourceSets[0].Resources[0] is only a BoundingBox-object! How do I

How to access nested elements from a JSON using Java (Bing-Search-API)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 13:44:27
问题 I have this JSON that I retrieved using Bing-Search-API. Now, I'm not sure how to access the nested elements using GSON. I already made the source files for the JSON Structure Data. If I do this: Gson gson = new Gson(); JsonParser parser = new JsonParser(); JsonArray Jarray = parser.parse(jsonText).getAsJsonArray(); It is going to throw me that is not a JsonArray , so If I change it to JsonObject , how can I retrieve the String MediaUrl from Results.java? Thank you 回答1: Based on the javadoc

Bing search API: specify filetype and site/domain?

人盡茶涼 提交于 2019-12-11 05:49:32
问题 Having had the luxury of having my fun and earning my bread well away from MS products for years, I am today trying to programmatically search with Bing Azure (wearing gloves) basically because I thought getting a google api was complex. So I headed down Data Market and issued this (let's say with perl's LWP which has been used to pass credentials): https://api.datamarket.azure.com/Bing/Search/v1/Composite?%24skip=0&%24top=10&%24format=json&Sources=%27web%27&Query=%27abc%27 which works. What

bing news search API

为君一笑 提交于 2019-12-11 03:24:48
问题 How does the "freshness" parameter of the Bing news search API work? I am writng a program to call the Bing news search API. I set the "freshness" parameter to be "Month". Yet, Bing returned content that can be as old as 6 months ago. How did I find out? I use the offset parameter to retrieve the last new pages of the returned result and found out that they are can be as old as 6 months (some even 2 years odl). Clarly, this result is contradict to the fresness parameter that I put in. Can

VBA code using XMLHttpRequest always returns #VALUE! in Excel

天涯浪子 提交于 2019-12-11 03:15:48
问题 I'm trying to get the address in https://dev.virtualearth.net/REST/v1/Locations/40.6718266667,-73.7601944444?o=xml&key=AqF-lvBxcTAEbhY5v0MfOHxhplD5NyaznesQ1IA5KS_RNghU1zrDiYN704mlrc8A That's the ("//Location/Name") The code is : Function FindALocationByPoint(Lat As String, Lon As String, BingMapsKey As String) As String Dim myRequest As XMLHTTP60 Dim uu As String uu = "https://dev.virtualearth.net/REST/v1/Locations/" & Lat & "," & Lon & "?o=xml&key=" & BingMapsKey Set myRequest = New

How to obtain Bing search Api and AppID for a website [closed]

半城伤御伤魂 提交于 2019-12-10 02:09:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . i have created the site in which i want to use bing search API . for that it require AppID but i didn't get the AppID. i tried to create a AppId on (azure market place) by creating the windows live ID . i created the client id and register the application. can any one suggest me how get the AppID for bing search

get autosuggestions via Bing Search API v2

我只是一个虾纸丫 提交于 2019-12-09 13:57:55
问题 How might one be able to get the list of autosuggestions for a given search from Bing Search API like in the screen capture below? This doesn't seem to be among the results provided by choices of [Web|Image|Video|News|SpellingSuggestion|RelatedSearch] . Alternatively, does Google provide this? As background, Bing can be queried via REST API using a query string, such as this URL (note it requires a developer key for basic auth). One can change the 'Web' keyword to get other results, but I'd

How to get number of search result from Bing API

被刻印的时光 ゝ 提交于 2019-12-08 18:01:03
问题 I want to use bing search api to obtain search result count for given query, however, Bing API seem to not return any fields containing the search result count. Should I specify some option to request URL? Or Bing API not return the result countt? 回答1: You can obtain the result count, but it's not as obvious as I thought it would be. Using this URL: https://api.datamarket.azure.com/Data.ashx/Bing/Search/v1/Composite?Sources=%27web%27&Query=%27YOUR_QUERY_HERE%27&$top=1&$format=JSON you can get