由API标记 [英] Token by API

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

问题描述





我们希望使用API​​自动获取BING报告但是存在我们无法避免的瓶颈。



我们有数据:



$ UserName =" 123@abc.com" ;;
$密码=" abcabc" ;;

$ DeveloperToken ="0123С4EFG5678900" ;;
$
$ CustomerId = 876543;

$ AccountId = 123456;



另外,要使用API​​,我们需要ACCESS_TOKEN。它只有在获得后1小时才有效。并且可以在人输入密码后获得。 

是否可以绝对自动获取令牌而无需任何人参与? 

Hi,

We want to grab our BING reports automatically with API yet there is a bottleneck we cannot avoid.

We have data:

$UserName = "123@abc.com";
$Password = "abcabc";
$DeveloperToken = "0123С4EFG5678900";
$CustomerId = 876543;
$AccountId = 123456;

Also to work with API we need ACCESS_TOKEN. It's valid only 1 hour after it's gotten. And it can be gotten after a human inputs a password in. 
Is it possible to get a token absolutely automatically and without any human participation? 

谢谢。

推荐答案

你好。


帐户管理模式
适用于你?例如,您是直接广告客户,代理商或工具提供商吗?

Which account management model applies to you? For example are you a direct advertiser, agency, or tool provider?

要让工具提供商使用Bing Ads API对每个应用进行身份验证,广告客户必须授予您的应用访问权限以管理其帐户。当用户成功提供同意后,您的应用程序将能够获得一个访问令牌,该令牌为
,然后用于代表该用户对Mi​​crosoft帐户服务进行身份验证。

For a tool provider to authenticate with each application using the Bing Ads API, advertisers must grant your application access to manage their accounts. When the user successfully provides consent, your application is able to obtain an access token that it then used to authenticate against the Microsoft account service on behalf of the user.

如果您是直接广告客户或代理商,则可能只有一位用户管理所有帐户。在这种情况下,如果您有权以该用户身份登录,则可以自行授予权限(仍然通过Web UI同意流程)。

If you are a direct advertiser or agency, you might have a single user who manages all accounts. In that case, and if you have permissions to log in as that user, you can grant the permissions yourself (still through the web UI consent flow).

无论您的帐户管理模式如何预先需要用户界面同意,然后刷新令牌可用于以编程方式管理帐户。如果更新Microsoft
帐户的密码或以其他方式删除权限,则可能需要其他同意。

Regardless of your account management model the user interface consent is required up front, and thereafter refresh tokens can be used to manage the accounts programmatically. Additional consent may be required if for example the password of the Microsoft account is updated or permissions are otherwise removed.

有关详细信息,请参阅
使用OAuth管理用户身份验证

For more information, please see Managing User Authentication with OAuth.

我希望这会有所帮助。


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

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