API访问问题...... [英] API access problem...

查看:79
本文介绍了API访问问题......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是bing广告(和PHP,更多是Perl人)的新手,所以请放轻松:)。我正在尝试使用API​​进行基本身份验证,以便我可以访问报告。

I'm new to bing ads (and PHP, more of a Perl person), so please take it easy :). I'm trying to get basic authentication going with the API so I can just access reports for example.

我已经下载了http://msdn.microsoft.com/en-us/ library / bing-ads-reporting-request-and-download-a-keyword-performance-report-in-php.aspx作为示例测试。

I've downloaded http://msdn.microsoft.com/en-us/library/bing-ads-reporting-request-and-download-a-keyword-performance-report-in-php.aspx as an example test.

我读了一些关于Oauth的内容,我是否应该为将来做其他事情(除了设置用户/密码/令牌),这只是服务器控制台访问下载报告(不是网络应用程序)?

I read something about Oauth, should I be doing something else (other than setting user/pass/token) for the future, this is just for server console access to download reports (not a web application)?

可能更重要的是,我也收到错误

Probably more importantly, I also get an error

"由同行重置SSL连接"

"SSL connection reset by peer"

"无法启用加密"尝试下载文件时的第342行。我应该检查SSL的任何事情吗?

"Failed to enable crypto" line 342 when it tries to download a file. Anything I should be checking SSL wise ?

(检查,php是用 ' - with-openssl'编译的)

(checking, php was compiled with '--with-openssl' )

感谢您的帮助!

推荐答案

你好团队,

感谢您的提问。首先,我想确保您正确验证API。之后,我们可以继续讨论您遇到的SSL问题的下一步。

Thank you for your questions. First, I want to make sure you authenticating the API correctly. After that, we can then move on to the next step of the SSL issue you are getting.

他们有两种方法可以在Bing Ads API中指定标题:

They are two ways that you can specify the header now in Bing Ads API:

1)使用旧的Bing Ads用户名(非MSA帐户)。
只有旧API

用户才有此。

1) Using old Bing Ads user name (NOT MSA account). Only Old API
users will have this.

< span style ="color:blue">< DeveloperToken i:nil = " false " >< / DeveloperToken >

<DeveloperTokeni:nil="false"></DeveloperToken>

< 密码
i:nil = " false " > ;< / 密码 >

< UserName
i:nil = " false " >< / 用户名 >

<UserName i:nil="false"></UserName>

+请求的其他必需标题元素

+other required header elements for the request

2)

使用MSA帐户,(,如果您的用户名是电子邮件地址的形式)。由于您是新用户,您很有可能在此类别中

2)
Using MSA account, (if your username is the form of an email address). Since you are new, you are most likely in this category

AuthenticationToken
i:nil = " false " >< / AuthenticationToken >

AuthenticationToken i:nil="false"></AuthenticationToken>

< DeveloperToken
i:nil = " ; false " >< / DeveloperToken >

<DeveloperToken i:nil="false"></DeveloperToken>

+请求的其他必需标题元素

+other required header elements for the request

这篇文章中描述了所有这些信息;

All this information is described in this article here;

http://msdn.microsoft.com/en-US/library/dn277356.aspx

如果您可以进行身份​​验证,请告诉我们。如果没有,请回复SOAP请求和响应。

Let us know if you can authenticate. If not, please respond with SOAP request and response.

谢谢,

Itai


这篇关于API访问问题......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆