如何注销一个dropbox帐户与php


how to logout a dropbox account with php

我正在使用dropbox php SDK,我想知道是否有任何方法可以注销任何php功能的dropbox帐户?

我正在使用curl来注销

function logout() 
{
    $ch = curl_init();
    $url="https://www.dropbox.com/logout";
    // set URL and other appropriate options
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    // grab URL and pass it to the browser
    curl_exec($ch);
    // close cURL resource, and free up system resources
    curl_close($ch);
}

这在服务器端是无法实现的,因为没有api存在。

试试这个:

<iframe src="https://www.dropbox.com/logout" style="display:hidden" />

如果您的问题与OAuth相关:

这将与应用程序中检查是否需要OAuth请求的部分相关。只需在那里要求新的认证。

例如:简单地从持久化中删除Token