Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68632

twittertimeline example is outdated and doesn't work

    XMLWordPrintable

    Details

    • Commits:
       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

          Activity

            People

            • Assignee:
              nicolasettlin Nicolas Ettlin
              Reporter:
              risto.sipola Risto Sipola
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes