Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Qt测试应用程序的OAuth实现_Qt_Oauth - Fatal编程技术网

Qt测试应用程序的OAuth实现

Qt测试应用程序的OAuth实现,qt,oauth,Qt,Oauth,我正在学习OAuth在我的Qt应用程序中实现。我使用分步文档创建了用于twitter身份验证的测试应用程序。以下是代码:- ox1 = new OXTwitter(this); ox1->setClientId("client-id");//Id got from twitter application created. ox1->setClientSecret("secret-key");//secret key got from application.

我正在学习OAuth在我的Qt应用程序中实现。我使用分步文档创建了用于twitter身份验证的测试应用程序。以下是代码:-

 ox1 = new OXTwitter(this);

    ox1->setClientId("client-id");//Id got from twitter application created.
    ox1->setClientSecret("secret-key");//secret key got from application.
    ox1->setUsername("user-id");
    ox1->setPassword("password");

    connect(ox1, SIGNAL(linkedChanged()), this, SLOT(onLinkedChanged()));
    connect(ox1, SIGNAL(linkingFailed()), this, SLOT(onLinkingFailed()));
    connect(ox1, SIGNAL(linkingSucceeded()), this, SLOT(onLinkingSucceeded()));
    connect(ox1, SIGNAL(openBrowser(QUrl)), this, SLOT(onOpenBrowser(QUrl)));
    connect(ox1, SIGNAL(closeBrowser()), this, SLOT(onCloseBrowser()));
    ox1->link();
但是我得到了以下错误。我已经在twitter应用程序中创建了一个测试应用程序,并在我的代码中使用了密钥。我仍然知道这个错误

OXTwitter::link O1:nTokenExchangeError:202“下载错误-服务器回复: 禁止“”客户端不允许执行此操作 “操作”登录失败


这不是代码的问题

如果您遇到此问题,请写信至api@twitter.com来自与应用程序关联的电子邮件地址。包括受影响的使用者密钥,API策略团队将尽快为您设置。当你从自动化系统收到一封电子邮件时,请确保并回复该电子邮件