1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/CDEK/Common-methods/Get-token.md
T
Vitaly the Alpaca (bot) bd90b054c9 Main build (Jenkins)
2024-10-09 16:35:56 +03:00

971 B

sidebar_position
sidebar_position
1

Get token

Gets a token based on account ID and password

Function GetToken(Val Account, Val Password, TestAPI = False) Export

Parameter CLI option Type Description
Account --account String Client identifier (Account)
Password --pass String Secret key (Password)
TestAPI --testapi Boolean Flag to use test API for requests

Returns: Map Of KeyAndValue - serialized JSON response from CDEK


:::tip Method at API documentation: Client authorization :::

    Account  = "wqGwiQx0gg8mLtiEKsUinjVSICCjtTEP";
    Password = "RmAmgvSgSl...";

    Result = OPI_CDEK.GetToken(Account, Password, True);
    
  oint cdek GetToken --account "wqGwiQx0gg8mLtiEKsUinjVSICCjtTEP" --pass "RmAmgvSgSl..." --testapi %testapi%