标签: bing-api

Ruby中的Bing Search API

我阅读了"Bing Search API - 快速入门"但我不知道如何在Ruby(Weary)中发出这个http请求

如何在Ruby中翻译"Stream_context_create()"?这是什么意思?

"Bing Search API - 快速入门" 在此输入图像描述

我想要使​​用Ruby sdk,但我发现的那些已被弃用ex(Rbing)https://github.com/mikedemers/rbing 您是否知道Bing Search API的最新Wrapper(仅限Web结果)?

ruby bing-api ruby-on-rails-3 azure-marketplace

5
推荐指数
1
解决办法
2221
查看次数

Bing Maps v8.0 Microsoft.Maps.Location不是chrome中的构造函数

我正在从版本6.3升级Bing Maps Version 8.0.这是我下面的升级代码,它抛出一个错误:

var Points = [new Microsoft.Maps.Location(0, 0), new Microsoft.Maps.Location(0, 0)]
Run Code Online (Sandbox Code Playgroud)

执行后的上述行给出了一个错误说法

"TypeError:Microsoft.Maps.Location不是构造函数"

上述问题发生在Google Chrome浏览器中.但是在Internet Explorer中也能正常工作.

任何建议都有帮助.

提前致谢.

此致,拉胡尔

google-chrome bing bing-maps bing-api

5
推荐指数
1
解决办法
2428
查看次数

BingAds客户端状态,oauth_web_auth_code_grant

我想通过bingads API从我的BingAds中获取我的自定义"报告"数据.我正在使用这个KeywordsAds.py可能不正确的例子.但是,我的问题始于身份验证,我似乎无法找到所需的所有身份验证输入.我错过了类似的例子,所以我知道我是否插入了正确的数据:

authorization_data=AuthorizationData(
    account_id='123456789', --instead of just None
    customer_id='123456789', --instead of just None
    developer_token='12345A1234567891', --instead of just DeveloperTokenGoesHere
    authentication='OAuthWebAuthCodeGrant', --instead of just None
Run Code Online (Sandbox Code Playgroud)

)

1)对于上面的代码,authentication我需要为WebAPI选择什么?(2)对于我所说的问题,我是否需要使用WebAPI,或者Web平台是否更有用?

CLIENT_ID='ClientIdGoesHere'
CLIENT_STATE='ClientStateGoesHere'
Run Code Online (Sandbox Code Playgroud)

3)什么是Client_State?我这个词确实谷歌,但没有找到解释.可以/需要插入什么值?

最后,我没有在示例代码中找到client_secret和redirection_uri,但它在Bing的Python入门页面上有说明:

oauth_web_auth_code_grant = OAuthWebAuthCodeGrant(
    client_id=CLIENT_ID,
    client_secret=CLIENT_SECRET,
    redirection_uri=REDIRECTION_URI
Run Code Online (Sandbox Code Playgroud)

这有必要填写吗?

bing-api python-3.x

5
推荐指数
1
解决办法
709
查看次数

Bing置信水平的细节

有没有人发现Bing Confidence Enumeration值的实际含义更完整?

我正在尝试将结果与另一个具有置信度值的地址数据来源进行协调,例如City,Street和Specific Address,我想要了解Bing结果在此范围内的位置.我正在使用RESTful API.

在MSDN文档只是说"高=地理编码服务在比赛高的信心." 等等

geocoding bing-maps bing-api

4
推荐指数
1
解决办法
2967
查看次数

如何在Windows Phone中使用Bing Search API?

我正在尝试使用Bing Search API来查找图像作为应用程序内部图块的背景.我在我的项目中包含了BingSearchContainer.cs但我无法使用此处提供的示例代码.

有关如何在我的Windows Phone 8应用程序中使用Bing Search API的任何指导原则都会受到关注!

谢谢你的回答.

c# bing-api windows-phone azure-marketplace windows-phone-8

4
推荐指数
1
解决办法
3889
查看次数

Bing WebSearch API的查询长度限制是多少?

鉴于Bing API文档主要由错误缠绕的两页Word文档组成,我无法在线找到答案.试验和错误产生了不一致的结果,并且考虑到查询需要花钱,我宁愿不必再猜测和检查.

新的"Azure marketplace"Bing WebSearch API的长度限制是多少?我知道存在某种限制,因为长查询往往会返回,"数据提供商的服务不接受该请求.团队正在调查此问题.我们很抱歉给您带来不便." 但是,根据输入的查询,在字符或单词方面发生这种情况的查询长度往往会有所不同.我使用像site:和instreamset:这样的高级运算符进行相当复杂的查询,因此很难缩小限制的范围.即:我已经成功地查询了超过1800个字符,并且我已经让它们失败了,少于1200个字符.

bing-api

4
推荐指数
1
解决办法
3156
查看次数

是否有 Microsoft 托管解决方案来测试 Bing 地图密钥?

是否有在线提供的 Microsoft 托管/认证的安全 Bing 地图密钥验证器?我需要

  • 检查钥匙是否有效
  • 里面激活的基本服务是什么。

谢谢。

maps bing-maps bing-api

4
推荐指数
1
解决办法
4429
查看次数

Bing API请求的Ajax授权标头是什么?

我正在向Bing Search API发送ajax请求.我将其用于请求的URL在我将其放入浏览器时起作用.使用ajax我得到401错误"The authorization type you provided is not supported. Only Basic and OAuth are supported"

因此我的标题是错的.它在浏览器中工作,因为我手动输入我的azure帐户密钥.

<script>
        $scope.bingsearch = function() {

            var azurekey = '....vjrQiHPp4ct1meqroX2pzQZhPvE';
            var keywords = $scope.inputvalue;
            var myurl = 'https://api.datamarket.azure.com/Bing/Search/v1/Composite?
                   Sources=%27web%27&$format=json&Query=%27'+ keywords + '%27';

            $http({
                method: 'POST',
                url: myurl,
                headers:{
                    'Authorization': 'Basic ' + azurekey  
                }
            }).success(function(data){
                var searchresults = angular.fromJson(+data);
                $scope.searchresult = searchresults;
            })
        };
</script>
Run Code Online (Sandbox Code Playgroud)

该URL https://api.datamarket.azure.com/Bing/Search/v1/Composite?Sources=%27web%27&$format=json&Query=%27van%20gogh%27在浏览器中工作.

如何设置标题以便它接受我的帐户密钥?

http azure bing-api

4
推荐指数
1
解决办法
1545
查看次数

使用Drakma为Bing Search API Common Lisp时出错

我正在构建一个程序,使用Bing的搜索API和常见的lisp与Drakma库来显示一些结果但由于某种原因在发送更长的查询时出错.它根本不显示任何结果.它适用于较短长度的查询.我正在使用临时帐户来解决这个问题.我有以下代码.

(defun get-rid-of-spaces (var)
 (cl-ppcre:regex-replace-all " " var "%20"))


(defun print-bing (search-term)
  (format nil "https://api.datamarket.azure.com/Bing/Search/v1/Web?Query=%27~a%27&Options=%27DisableLocationDetection%27&$format=json&$top=1" (get-rid-of-spaces search-term)))

(defun drakma-bing (search-term)
 (drakma:http-request (print-bing search-term)
           :basic-authorization
           '("bob.hammerston@mailinator.com" "L2gbaj+s1/KW/+ifAa9HrP0C1/kClpF4InH48Lw8UNc")))

(defun convert-to-string (response)
 (map 'string #'code-char response))
Run Code Online (Sandbox Code Playgroud)

然后我称之为,但它只适用于短搜索术语,我无法弄清楚原因.这不起作用:

(convert-to-string (drakma-bing "what is the largest man in the world"))
Run Code Online (Sandbox Code Playgroud)

但这样做

(convert-to-string (drakma-bing "what is"))
Run Code Online (Sandbox Code Playgroud)

知道为什么吗?

谢谢.

编辑:

我尝试手动编码print-bing函数,而不是使用带有更长字符串的函数,但它仍然不起作用,因此Drakma必定存在错误.我尝试手动将域名输入到Web浏览器中,这样就可以了,这就是为什么我认为错误与Drakma有关.

lisp common-lisp bing-api drakma

4
推荐指数
1
解决办法
165
查看次数

delphi读取xml元素

我是XML的新手,我们需要使用新的Bing Spatial Data API进行GeoCoding .我已经设法以xml格式从他们那里得到了一个结果.我如何阅读响应中的特定元素,即.链接,状态和错误消息?

<?xml version="1.0" encoding="utf-8"?>
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/search/local/ws/rest/v1">
    <Copyright>Copyright © 2011 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.</Copyright>
    <BrandLogoUri>http://spatial.virtualearth.net/Branding/logo_powered_by.png</BrandLogoUri>
    <StatusCode>201</StatusCode>
    <StatusDescription>Created</StatusDescription>
    <AuthenticationResultCode>ValidCredentials</AuthenticationResultCode>
    <TraceId>ID|02.00.82.2300|</TraceId>
    <ResourceSets>
        <ResourceSet>
            <EstimatedTotal>1</EstimatedTotal>
            <Resources>
                <DataflowJob>
                    <Id>ID</Id>
                    <Link role="self">https://spatial.virtualearth.net/REST/v1/dataflows/Geocode/ID</Link>
                    <Status>Pending</Status>
                    <CreatedDate>2011-03-30T08:03:09.3551157-07:00</CreatedDate>
                    <CompletedDate xsi:nil="true" />
                    <TotalEntityCount>0</TotalEntityCount>
                    <ProcessedEntityCount>0</ProcessedEntityCount>
                    <FailedEntityCount>0</FailedEntityCount>
                </DataflowJob>
            </Resources>
        </ResourceSet>
    </ResourceSets>
</Response>
Run Code Online (Sandbox Code Playgroud)

我正在使用Delphi XE. …

xml delphi geospatial bing-api

3
推荐指数
1
解决办法
1万
查看次数