GoogleTimeToken
in package
Google Translate time token manager.
Handles generation and retrieval of time tokens for Google Translate API.
Tags
Table of Contents
Methods
- get() : array<string|int, int>|null
- Get the time token to use for Google, generating a new one if necessary.
- regenerate() : array<string|int, int>|null
- Generate a new token for Google.
Methods
get()
Get the time token to use for Google, generating a new one if necessary.
public
static get() : array<string|int, int>|null
Tags
Return values
array<string|int, int>|null —Token pair [time, hash] or null on failure
regenerate()
Generate a new token for Google.
public
static regenerate() : array<string|int, int>|null
Tags
Return values
array<string|int, int>|null —Token pair [time, hash] or null on failure