OAuthFlowNewAuthorizationURL Method | |
Generate a new authorization URL.
Namespace:
Smartsheet.Api.OAuth
Assemblies:
smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
Syntax string NewAuthorizationURL(
IEnumerable<AccessScope> scopes,
string state
)
Function NewAuthorizationURL (
scopes As IEnumerable(Of AccessScope),
state As String
) As String
String^ NewAuthorizationURL(
IEnumerable<AccessScope>^ scopes,
String^ state
)
abstract NewAuthorizationURL :
scopes : IEnumerable<AccessScope> *
state : string -> string
Parameters
- scopes
- Type: System.Collections.GenericIEnumerableAccessScope
the requested scopes - state
- Type: SystemString
an arbitrary string that will be returned to your app; intended to be used by you to ensure that
this redirect is indeed from an OAuth flow that you initiated.
Return Value
Type:
String the authorization URL
Exceptions Exception | Condition |
---|
InvalidOperationException | if scopes is null or empty |
See Also