C# 클래스 Esri.ArcGisServer.Rest.Authentication.AuthenticationService

This is used to get tokens.
파일 보기 프로젝트 열기: WSDOT-GIS/ArcGisServerRestApiWrapper 1 사용 예제들

공개 메소드들

메소드 설명
AuthenticationService ( string url = "https://www.arcgis.com/sharing/oauth2/token" ) : System

Creates a new instance of the AuthenticationService.

GetToken ( string clientId, string clientSecret, int expirationInMinutes = null ) : Token

Gets a token.

메소드 상세

AuthenticationService() 공개 메소드

Creates a new instance of the AuthenticationService.
public AuthenticationService ( string url = "https://www.arcgis.com/sharing/oauth2/token" ) : System
url string
리턴 System

GetToken() 공개 메소드

Gets a token.
Thrown if the request for the token fails.
public GetToken ( string clientId, string clientSecret, int expirationInMinutes = null ) : Token
clientId string OAuth ClientId
clientSecret string OAuth ClientSecret
expirationInMinutes int Optional. Specify how many minutes until the token expires.
리턴 Token