我正在尝试使用端点请求访问令牌:
https://www.linkedin.com/oauth/v2/accessToken?grant_type=client_credentials&client_id={clientid}&client_secret={clientsecret}
Run Code Online (Sandbox Code Playgroud)
我得到的回应是:
{
"error": "access_denied",
"error_description": "This application is not allowed to create application tokens"
}
Run Code Online (Sandbox Code Playgroud)
我已将权限设置为 r_basicprofile 和 rw_company_admin。
我正在创建一个名为Asset的简单抽象类,标题代码如下所示:
#ifndef ASSET_H
#define ASSET_H
#include <QString>
#include <QDate>
class Asset
{
public:
Asset(QString des, QDate dat);
~Asset();
virtual QString toString();
virtual double value();
QString getDescription();
private:
QString description;
protected:
QDate date;
};
#endif // ASSET_H
Run Code Online (Sandbox Code Playgroud)
这是我的实现文件的样子:
#include "asset.h"
Asset::Asset(QString des, QDate dat)
{
description = des;
date = dat;
}
QString Asset::getDescription()
{
return description;
}
Run Code Online (Sandbox Code Playgroud)
我在实现构造函数上得到的错误代码是: undefined reference to vtable for Asset
我在这做错了什么?