newOauthAuthenticator
open fun newOauthAuthenticator(tokenProvider: Callable<String>): Authenticator
Content copied to clipboard
Create a new OAuth 2.0 Authenticator
See the related API documentation pages.
Return
a new Authenticator instance that uses PCloud API's OAuth 2.0 tokens.
Parameters
tokenProvider
a non-null Callable object that will return an pCloud OAuth token.