万店掌 API icon

万店掌 API

万店掌开放平台 API

Get User Token

AI-generated

Summary

Logs in to the Ovopark (万店掌) open platform via the SSO login method and returns a short-lived Ovo-Authorization user token for use in later API calls.

Inputs

  • Timeout — Request timeout in milliseconds (default 30000). Use 0 to disable the timeout.
  • ovoparkApi credential (required) — Gateway credential: gateway URL, access key ID and secret, version, request mode, and optional app ID. Used to sign the request.
  • ovoparkUserApi credential (required) — The Ovopark username and password to log in with. The password is MD5-hashed before sending.

Output shape

One output item per input item. Each item is the full ssoLogin response JSON plus the added fields ovoAuthorization, token (both the same value from data.token), tokenExpirationTimestamp and tokenExpirationSurplusTimestamp.

Throws an error if the response has no data.token, or if a required credential field is empty. With Continue On Fail enabled, a failed item returns {error: message}. The token is short-lived. Pass ovoAuthorization to the Call API operation's 'Ovo Authorization' field.

Examples

Example 1: Fetch a token, then call an API that requires login

Run Get User Token with both credentials set. In a following Call API node, set Ovo Authorization to the expression {{ $json.ovoAuthorization }}.

Example 2: Slow gateway

Set Timeout to 60000 to allow up to 60 seconds for the login request.

Links

Discussion