summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMÃ¥rten Nordheim <marten.nordheim@qt.io>2017-04-10 11:49:35 +0200
committerMarten Nordheim <marten.nordheim@qt.io>2017-04-10 11:46:16 +0000
commit034b35a3bcbc34509f77b46d3754196c9d53552d (patch)
treec69cc8339cb07a176e9b4d222f4845c8e9e7469a /examples
parentdecac344458ddd45ec8f03d721d40795c7095404 (diff)
Let the users change the path for the callback-url5.8
Task-number: QTBUG-59653 Change-Id: I4bf938db2db3624c37b7f1a8d598bfa43052e2e0 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/oauth/twittertimeline/twitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/oauth/twittertimeline/twitter.cpp b/examples/oauth/twittertimeline/twitter.cpp
index 49061a7..933ae3e 100644
--- a/examples/oauth/twittertimeline/twitter.cpp
+++ b/examples/oauth/twittertimeline/twitter.cpp
@@ -47,6 +47,7 @@ Twitter::Twitter(const QString &screenName,
QOAuth1(clientCredentials.first, clientCredentials.second, nullptr, parent)
{
replyHandler = new QOAuthHttpServerReplyHandler(this);
+ replyHandler->setCallbackPath("callback");
setReplyHandler(replyHandler);
setTemporaryCredentialsUrl(QUrl("https://api.twitter.com/oauth/request_token"));
setAuthorizationUrl(QUrl("https://api.twitter.com/oauth/authenticate"));