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

twittertimeline example is outdated and doesn't work

XMLWordPrintable

    •  55b80f9e7b0a81cf6c80ae0a381a20641194c09e

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes