1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-02 23:27:50 +02:00
Vitaly the Alpaca (bot) 2e85cb9d03 Main build (Jenkins)
2024-09-29 21:40:58 +03:00

954 B

sidebar_position
sidebar_position
2

Get token

Gets the token by the code received when authorizing using the link from GetAuthorizationLink

Function GetToken(Val Code, Val Parameters = "") Export

Parameter CLI option Type Description
Code --code String Code obtained from authorization See GetAuthorizationLink
Parameters --auth Structure Of String Auth data or path to .json file

Returns: Map Of KeyAndValue - serialized JSON response from Twitter


    Parameters = GetTwitterAuthData();
    Code       = "123456";

    Result = OPI_Twitter.GetToken(Code, Parameters);
    
  oint twitter GetToken --code %code% --auth %auth%

{
 "error": "invalid_request",
 "error_description": "Value passed for the authorization code was invalid."
}