bing-api

Parsing json works only partially

核能气质少年 提交于 2019-12-08 13:58:12
问题 I have been trying to get json result for news search using the Bing Search API. I get a json result. Since I am new to all this, I am trying to just making the JSON.parse() thing work in Javascript. Now, it does not work for the following code: <!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var json = '{"d":{"results":[{"__metadata":{"uri":"https://api.datamarket.azure.com/Data.ashx/Bing/Search/v1/News?Query=\u0027britain\u0027&$skip=0&$top=1","type":"NewsResult"},"ID":"361408f1

Bing API v1 documentation

倾然丶 夕夏残阳落幕 提交于 2019-12-07 12:16:24
问题 Does anyone know where I can find the latest documention for Bings API with the following URL: https://api.datamarket.azure.com/Bing/Search/v1/Web Even their own website has the wrong URL in the word docs I have been reading, i.e. https://api.datamarket.azure.com/Bing/SearchWeb/Web does not work. I can get the search to work and return results, but cannot get the total record count, if I use composite I can get record count but no results. I just looking for an up-to-date example of how to

Bing maps for iPhoneSDK

元气小坏坏 提交于 2019-12-07 11:51:06
问题 Does anyone know how to create simple iPhone app using bing maps? 回答1: The Bing Mobile/Bing Maps team released a new Bing Maps iOS SDK for iPhone and iPad in early May 2011. You can download the SDK here and read about the details in this blog post. 回答2: Personally I would start by reading their API and figure out which services to use 回答3: You may also find that the Bing Maps V7 AJAX control used with PhoneGap gives you a lot more power. Using this approach you get the full power of Bing

How to specify Image type in Google Custom Search

試著忘記壹切 提交于 2019-12-06 21:24:07
问题 I am using Google Custom Search to get images with some criteria. I am initiating HTTP Get requests from java application to call the Google Custom Search API (Please note I am NOT using javascript or css and I am NOT developing web site). I am able to get the images, and the program is working. the application brings images which has Jpg extension. I want to : bring ONLY the images which has png extension AND has transparent background. I tried to specify the filetype in the query string of

Google maps or Bing maps API?

人盡茶涼 提交于 2019-12-06 14:35:55
I'm trying to figure out what to use for my web application. I"m currently using Google maps api, however I have started looking at Bing maps api more. This application among other things, gives directions to where you have to go. The reason I'm thinking about going to Bing is that Google has gotten some addresses wrong (probably about 10%) and Bing has gotten 0 wrong so far. Does anyone know if one is more accurate than the other (other than me just performing my non scientific test on both). Also, I want to do other things in the future, like cluster pins. I know google maps can do that, but

Bing Azure search api

自作多情 提交于 2019-12-06 13:35:26
问题 I'm trying to connect to Bing search api and have not been able to get the code to work. I've googled the problem and no working code can be found. Here is my code: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import org.apache.commons.codec.binary.Base64; public class BSearch{ public static void main(String[] args) { // TODO Auto-generated method stub

How do I add additional attributes to XML Elements with the SoapClient Class in PHP

时间秒杀一切 提交于 2019-12-06 12:25:25
I cannot work out how to add additional attributes to an xml doc using php. To request a report from the Bing Ads Api I need to pass the information with SOAP. I don't have any SOAP experience so I am working through Ewan Hemmings Example here - http://www.ewanheming.com/bing-ads-api-campaign-download . I need to make some subtle changes that will pass the LastSyncTimeInUTC as Null. I have looked at simpleXML extension but I would prefer to continue using the SoapClient Class used in the Bing Documentation. I have been messing around with \SoapVar - http://www.php.net/manual/en/soapvar.soapvar

Is there an API to get results similar to Google's “people also search for”?

半世苍凉 提交于 2019-12-06 10:53:01
问题 I'm looking for an API that would give similar results to the Google's "people also search for" feature. So that, for instance, when I search for Stanley Kubrik, I see all the other film directors that people search for. I know about the Freebase API but it simply provides information about the search item, not what other search items it may be related to. There is also a TargetingIdeaSelector tool in Google AdWords API that shows related keywords, but that doesn't really range the results

Get list of Local Businesses using Bing Maps Search service API

感情迁移 提交于 2019-12-06 09:07:51
问题 I am developing a Windows Phone 7 Silverlight application that currently displays a map that show's the user where they are by getting the coordinates from location services. I can get an address using bing Reverse geocoding API. I would like to display local businesses to the user that may be off interest by placing pushpins on the map. However I'm not able to get any search results from the Search Service API. Whatever I enter I get 0 results and I find the documentation lacking. I've tried

What are the Ajax authorization headers for a Bing API request?

老子叫甜甜 提交于 2019-12-06 04:23:23
问题 I'm sending an ajax request to the Bing Search API. The URL I am using for the request works when I put it in the browser. With ajax I get a 401 error "The authorization type you provided is not supported. Only Basic and OAuth are supported" therefore my header is wrong. It works in the browser because I manually type in my azure account key. <script> $scope.bingsearch = function() { var azurekey = '....vjrQiHPp4ct1meqroX2pzQZhPvE'; var keywords = $scope.inputvalue; var myurl = 'https://api