Saturday, February 2, 2013

Still Riding The Qt Train?

(Or: Welcome, BB10!)

On popular request, I have finally added some documentation to my OAuth library "O2". Check out the new README here: https://github.com/pipacs/o2/blob/master/README.md

2 comments:

  1. GReat thanks, i see you have examples for twitter and facebook.
    do you have a flickr example as well ?

    flickerAuth.setClientId("myverylongid-from-flickr-api-page");
    flickerAuth.setClientSecret("myverylong-secret-from-flickr-api-page");

    connect(&flickerAuth, SIGNAL(linkedChanged()), this, SLOT(onLinkedChanged()));
    connect(&flickerAuth, SIGNAL(linkingFailed()), this, SLOT(onLinkingFailed()));
    connect(&flickerAuth, SIGNAL(linkingSucceeded()), this, SLOT(onLinkingSucceeded()));
    connect(&flickerAuth, SIGNAL(openBrowser(QUrl)), this, SLOT(onOpenBrowser(QUrl)));
    connect(&flickerAuth, SIGNAL(closeBrowser()), this, SLOT(onCloseBrowser()));

    and i get the browser all the way up and when i press the autorize on the webpage i open, but it fails on

    O1::onTokenExchangeFinished: oauth_token or oauth_token_secret missing from response
    (i changed the url to go to https because flickr now tells you to https://www.flickr.com/services/oauth/access_token )

    https://www.flickr.com/services/api/auth.oauth.html

    ah.. a question.. : did you ever get the flickr part going ? if so do you have some test code i could try please ?

    thanks,
    tom

    ReplyDelete
  2. @clogwog Thank you for your comments! It would be great if you could make Flickr work again, patches are most welcome! In the meanwhile, check out https://github.com/pipacs/o2/pull/21 -- maybe you are running into the same issue?

    ReplyDelete