aboutsummaryrefslogtreecommitdiffstats
path: root/examples/networkauth/redditclient/doc/redditclient.rst
blob: 48b720abb5cdefc8ac6c919f4ccb11e7d5b620f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Reddit Example
==============

Demonstrates authenticating with OAuth 2 to access Reddit.

The Reddit example uses OAuth 2, as supported by Qt Network Authorization,
to sign in to Reddit and display the Reddit posts (in text format) associated
with the authenticated user.

To use this example, a consumer key from Reddit is needed.
To register the application visit https://www.reddit.com/prefs/apps/.

.. note::
   Choose installed app when creating the application.

.. note::
   Set the redirect URI to http://127.0.0.1:1337/ in Reddit settings.

.. image:: redditclient.png
   :width: 400
   :alt: Reddit Example Screenshot