【发布时间】:2021-01-12 12:48:55
【问题描述】:
我正在尝试连接到我们的云帐户,但出现以下错误:
致命错误:未捕获的错误:在 /www/htdocs/asdf/asdf.org/example-cloud.php:13 中找不到类“ActiveCollab\SDK\Authenticator\Cloud”:13 堆栈跟踪:#0 {main} 抛出/www/htdocs/asf/asdf.org/example-cloud.php 第 13 行
require_once('https://app.activecollab.com/xxxxxx/autoload.php');
// Provide name of your company, name of the app that you are developing, your email address and password.
$authenticator = new \ActiveCollab\SDK\Authenticator\Cloud('xxx', 'My Awesome Application', 'vvv@ghf.de', '123qwe123*');
// Show all Active Collab 5 and up account that this user has access to.
print_r($authenticator->getAccounts());
// Show user details (first name, last name and avatar URL).
print_r($authenticator->getUser());
// Issue a token for account #123456789.
$token = $authenticator->issueToken('123456789');
// Did we get it?
if ($token instanceof \ActiveCollab\SDK\TokenInterface) {
print $token->getUrl() . "\n";
print $token->getToken() . "\n";
} else {
print "Invalid response\n";
die();
}
我做错了什么?
【问题讨论】:
标签: php api sdk activecollab