Generate a secured and public API Key from a list of query parameters and an
optional user token identifying the current user.
public static generateSecuredApiKey ( string $privateApiKey, mixed $query, string | null $userToken = null ) : string | ||
$privateApiKey | string | your private API Key |
$query | mixed | the list of query parameters applied to the query (used as security) |
$userToken | string | null | an optional token identifying the current user |
return | string |