ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS for Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

GetSigninToken

  • Resumen
  • Debate
  • Sintaxis
  • Muestra de código

Resumen

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. This function should be used within a desktop application, either from the Python window or a script tool executed from within the application as it returns the token from the desktop session. If run from a stand-alone script, or 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 datosExplicación
Dictionary

A dictionary of key value pairs for token, referer, expires, and messages.

Muestra de código

GetSigninToken example

Get and print a token within the Python window.

import arcpy

token = arcpy.GetSigninToken()
if token is not None:
    print(token['token'])

Temas relacionados

  • GetActivePortalURL
  • ListPortalURLs

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

Plataforma ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2019 Esri. | Privacidad | Legal