Interface AuthToken
Interface google.maps.journeySharing.AuthToken
Jeton d'authentification renvoyé par l'outil de récupération des jetons.
Propriétés | |
---|---|
expiresInSeconds |
Type:
number Délai d'expiration en secondes. Un jeton expire dans ce délai après extraction. |
token |
Type:
string Jeton. |
Interface AuthTokenContext
Interface google.maps.journeySharing.AuthTokenContext
Contient des informations supplémentaires nécessaires pour obtenir des jetons Web JSON.
Propriétés | |
---|---|
deliveryVehicleId optional |
Type:
string optional Lorsqu'il est fourni, le jeton frappé doit être associé à une revendication DeliveryVehicleId privée pour le shippingVehicleId fourni. |
taskId optional |
Type:
string optional Lorsqu'il est fourni, le jeton frappe doit posséder une revendication TaskId privée pour le taskId fourni. |
trackingId optional |
Type:
string optional Lorsqu'il est fourni, le jeton frappe doit posséder une revendication TrackingId privée pour l'ID de suivi fourni. |
tripId optional |
Type:
string optional Lorsqu'il est fourni, le jeton en frappe doit avoir une revendication TripId privée pour le tripId fourni. |
vehicleId optional |
Type:
string optional Lorsqu'il est fourni, le jeton frappé doit être associé à une revendication VehicleId privée pour le vehicleId fourni. |
typedef AuthTokenFetcher
typedefgoogle.maps.journeySharing.AuthTokenFetcher
Type de fonction du jeton d'authentification.
Fonction qui accepte un objet AuthTokenFetcherOptions
, qui contient des détails sur le jeton d'authentification à frapper. Cette fonction doit générer le jeton, et renvoyer un jeton AuthToken
contenant le jeton et son délai d'expiration.
function(AuthTokenFetcherOptions): Promise<AuthToken>
Interface AuthTokenFetcherOptions
Interface google.maps.journeySharing.AuthTokenFetcherOptions
Options pour l'outil de récupération des jetons d'authentification.
Propriétés | |
---|---|
context |
Type:
AuthTokenContext Contexte du jeton d'authentification. Les ID spécifiés dans le contexte doivent être ajoutés à la requête envoyée au point de terminaison de frappe du jeton Web JSON. |
serviceType |
Type de service Fleet Engine. |
Constantes FleetEngineServiceType
Constantes google.maps.journeySharing.FleetEngineServiceType
Types de services Fleet Engine
Accédez au compte en appelant const {FleetEngineServiceType} = await google.maps.importLibrary("journeySharing")
. Consultez Bibliothèques dans l'API Maps JavaScript.
Constantes | |
---|---|
DELIVERY_VEHICLE_SERVICE |
Service de parc Fleet Engine utilisé pour accéder aux véhicules de livraison. |
TASK_SERVICE |
Service Fleet Engine utilisé pour accéder aux informations sur les tâches. |
TRIP_SERVICE |
Service Fleet Engine permettant d'accéder aux informations sur les trajets. |
UNKNOWN_SERVICE |
Service Fleet Engine inconnu. |