Podio authentication PHP api with refresh_token

Answered

Comments

13 comments

  • Carl-Fredrik Herö

    The refresh token is handled automatically in the PHP Library. you shouldn't have to deal with it at all.

    Also, there is a new much better version of the library, if it's not too much work for you I suggest you use that instead.

    0
    Comment actions Permalink
  • Carl-Fredrik Herö

    To be clear, you do have to save and pass the refresh token to the library each time together with the access_token.

    /* Using the old lib, untested code from my head */

    $api = Podio::instance(CLIENT_ID, CLIENT_SECRET);

    $api->oauth = new PodioOAuth($access_token, $refresh_token);

    /* regular api calls, you don't need to authenticate as the lib will do it for you */

    0
    Comment actions Permalink
  • James Trusler

    Let me have another stab at this. Thanks for your input!

    0
    Comment actions Permalink
  • James Trusler

    Still no idea how to change my dam profile image... lmao. Fat booth ruined my life. It's not using the same as the normal Podio profile image.

    0
    Comment actions Permalink
  • Carl-Fredrik Herö

    Gravatar?

    0
    Comment actions Permalink
  • James Trusler

    Nah, just checked. Hah... Oh well!

    0
    Comment actions Permalink
  • Carl-Fredrik Herö

    Looks like it's from zendesk.

    0
    Comment actions Permalink
  • James Trusler

    Don't seem to have an account there? Tried the email address associated with the podio i'm currently logged into. "Whoops. We can't find that email address. Did you spell it correctly?"

    Cheers though! 

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    As James say the client lib. should handle all refreshes for you automatically.

    As for your avatar. Try logging out via this link https://help.podio.com/access/logout (this will log you out of Podio as well). Log back into Podio and go to the Help Center by clicking through from the topbar link inside Podio. That should reset your avatar over here.

    0
    Comment actions Permalink
  • James Trusler

    test message

    0
    Comment actions Permalink
  • James Trusler

    That didn't work but once again, thanks for trying :)

    Just to confirm, I pressed your link. logged back in, top bar i clicked through to the help forums. 

    0
    Comment actions Permalink
  • Patrick Steil

    Andreas, I am getting this error today on on of my apps, just me... 

    [Sorry, your OAuth grant has expired.]

    And we are using the PHP libs... what do you suggest?  thanks...

    Patrick Steil

    http://www.podiotools.com

     

    0
    Comment actions Permalink
  • Patrick Steil

    Weird... turns out this is happening with one specific item... it is very weird... ignore this for now, thanks... :)

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk