create
suspend fun create(portalUrl: String, clientId: String, clientSecret: String, tokenExpirationInterval: Int? = null): Result<OAuthApplicationCredential>
Creates an OAuthApplicationCredential with information needed to access an ArcGIS resource.
Return
Returns an OAuthApplicationCredential.
Since
200.2.0
Parameters
portal Url
The URL of the portal to authenticate with.
client Id
A unique identifier associated with an application registered with the portal that assists with client/server OAuth authentication.
client Secret
A private key that verifies the application is authorized to access the registered service.
token Expiration Interval
The duration the token will remain valid, represented in minutes. The value must be greater than 0, otherwise the server default is used.