Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.5, 5.10.1, 5.11.0
-
Windows 10
-
55b80f9e7b0a81cf6c80ae0a381a20641194c09e
Description
https://doc.qt.io/archives/qt-5.10/qtnetworkauth-twittertimeline-example.html
'twittertimeline' example is outdated and doesn't work. Using a consumer key and secret from Twitter are not enough to make the example work. The example works if one sets Callback URL in Twitter settings. This is not instructed by the example documentation, so maybe it wasn't required at the time of making the example? It is also inconvenient that the callback URL used by the Qt app is different on each run. It is possible to read the callback URL from the Qt app using the function QOAuthHttpServerReplyHandler::callback(). (For example, place 'qDebug() << replyHandler->callback();' in Twitter::Twitter)
The sample project attached demonstrates that authentication with Twitter is possible without setting a callback URL (in Twitter). Only the consumer key and secret are needed. Maybe this sample can be utilized while revising the example.
Attachments
For Gerrit Dashboard: QTBUG-68632 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
233775,4 | Fix the twittertimeline example | 5.11 | qt/qtnetworkauth | Status: MERGED | +2 | 0 |