OAuth token with Credentials object?

instead of retrieving the user name and password, is there a way I can have the credentials object get the username and password from the user, then give me an oauth token for use in REST api calls? I have an api key to put in my script, but can’t see how to get an oauth token.

this is for the trello api.

thanks

Credentials are just for storing account configuration and authentication values. They do not support any OAuth flows.

Not familiar with Trello’s API specifically, but most APIs offer a persistent developer token which can be stored in Credentials and used to construct requests.

Exposing additional APIs as wrappers with OAuth support, like Drafts has for the Twitter API, is planned.

thanks. I will see if I can get a persistent token from the api somehow.