Click here to Skip to main content
15,921,643 members
Home / Discussions / CodeProject API

CodeProject API

AnswerRe: Persistent Access Token? Pin
Matthew Dennis22-Sep-14 6:27
sysadminMatthew Dennis22-Sep-14 6:27 
GeneralRe: Persistent Access Token? Pin
Agent__00722-Sep-14 18:26
professionalAgent__00722-Sep-14 18:26 
OK, just gave a quick try to this using Postman and used a POST to with my CP username, password and password as grant_type in x-www-form-urlencoded as you (and in the OAuth documentation) suggested, but it's returning a 400 Bad Request - "invalid_client" response. However, same POST to seemed to be working as it returned some "valid" HTML.

I will give it a try again. However, I would like to share an observation -

If I login into the API manually through a browser and capture the access token by running a sample under the My API, not only I can use it for both the APIs, it seems to be lasting quite some long time. As far as I can see, I can still make requests to the API using the access token I captured yesterday (almost 12-14 hours).

Can you please enlighten this behavior? I mean the lifetime of such access tokens? Even if they are lasting for a couple of days, I can make the access token configurable in my application (as it will be only for personal use) and replace it manually bypassing these OAuth steps through the application. Unsure | :~

Please let me know, thanks again for the API. Thumbs Up | :thumbsup:
Whether I think I can, or think I can't, I am always bloody right!

GeneralRe: Persistent Access Token? Pin
Matthew Dennis23-Sep-14 7:35
sysadminMatthew Dennis23-Sep-14 7:35 
GeneralRe: Persistent Access Token? Pin
Agent__00723-Sep-14 18:01
professionalAgent__00723-Sep-14 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.