Click or drag to resize

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
)

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
ExceptionCondition
InvalidOperationException if scopes is null or empty
See Also