GetSigninToken
Resumen
The GetSigninToken function returns token information when signed in to ArcGIS.com or a local portal.
Debate
The GetSigninToken function will return the token and expiration information when signed in to a portal. If the application is not signed in, the function will return None. The token can be used by urllib calls to authenticate with ArcGIS.com services through REST.
Sintaxis
GetSigninToken()
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
Dictionary |
A dictionary of key value pairs for |
Muestra de código
GetSigninToken example
Get and print a token in the Python window.
import arcpy
token = arcpy.GetSigninToken()
if token is not None:
print(token['token'])