如何使用Refreshtoken重新生成访问令牌

如何使用Refreshtoken重新生成访问令牌

问题描述:

我该如何 使用php bingads API脚本使用刷新令牌重新生成访问令牌

How can I  regenerate access token using Refresh token using php bingads API script

Hello。

Hello.

获取新的访问令牌并使用现有刷新令牌刷新令牌,如中所述Bing Ads API OAuth指南 授权类型应为
为'refresh_token'。如果您使用当前的 PHP oauth示例作为起点,则可以修改

To get a new access token and refresh token with an existing refresh token, as described in the Bing Ads API OAuth guide the grant type should be 'refresh_token'. If you are using the current PHP oauth sample as a starting point, you can modify the


accessTokenExchangeParams类似于以下内容:
accessTokenExchangeParams similar to the following:
// These params will be added to the URL used in 
// HTTP POST below to request an access token


accessTokenExchangeParams = array(
'client_id'=>
accessTokenExchangeParams = array( 'client_id' =>