Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Connect to Twitter streaming api
Forum Updated to NodeBB v4.3 + New Features

Connect to Twitter streaming api

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 515 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jack07
    wrote on last edited by
    #1

    Hello,
    I'm new to programming and for the most parts I don't have idea on what I'm doing but i would like to know if it's relatively easy to connect to twitter streaming API using QT.

    I had success connecting following the example bellow, using libraries like curl, liboauth and openssl but i would like to make everything is QT since it's more thread safe and maybe easier to implement in a gui.
    https://gist.github.com/komasaru/9c78a278f6916548f146

    I tried looking on how it works in the example above and appling to QT but it gets pretty indepth and i got lost. I don't really understand the oauth flow, what tools to use and how. I also don't know if QNetworkAccessManager can do this since it's async and for twitter streaming api i need a continuous call.

    From what i've read it's not necessary to implement the full oauth, just the part where i make the signed request, but i don't know: https://developer.twitter.com/en/docs/basics/authentication/guides/single-user

    So is this doable for someone new to programming, any examples or tips to get me started?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      This is in fact one of Qt's examples: https://doc.qt.io/qt-5.10/qtnetworkauth-twittertimeline-example.html

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • J Offline
        J Offline
        jack07
        wrote on last edited by
        #3

        I saw it and i though it won't work with the streaming API.
        Thanks, I will look into it.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved