簡體   English   中英

嘗試刷新OAuth令牌的問題

[英]issues trying to refresh OAuth token

我正在嘗試使用他們文檔中的指南來刷新我的infusionsoft令牌: https : //developer.infusionsoft.com/authentication/#refresh-access-token

$url = "https://api.infusionsoft.com/token";
$client_id = '';
$client_secret = '';
$refresh_token = '';

$options = array(
'http' => array(
    'header'  => "Content-type: application/json\r\n".
        "Authorization: Basic ". base64_encode($client_id. ":". $client_secret),
    'grant_type' => 'refresh_token',
    'refresh_token' => $refresh_token,
    'method'  => 'POST',
  )
);

有什么事要向你跳嗎? 我也正在Infusionsoft論壇上尋求幫助,但是我想知道你們中是否有人曾經這樣做過。

grant_type和其他變量需要作為post參數發送,您當前正在將它們作為http標頭發送。

還可以在這里完成: 如何使用file_get_contents在PHP中發布數據?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM