1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-29 23:17:45 +02:00

40 lines
663 B
Markdown
Raw Normal View History

---
sidebar_position: 3
---
# Refresh token
Updates the v2 token using the refresh_token
2024-07-10 13:58:29 +03:00
`Function RefreshToken(Val Parameters = "") Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
2024-09-24 11:38:18 +03:00
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-09-24 11:38:18 +03:00
Parameters = GetTwitterAuthData();
Result = OPI_Twitter.RefreshToken(Parameters);
```
```sh title="CLI command example"
oint twitter RefreshToken --auth %auth%
```
```json title="Result"
2024-09-29 17:27:25 +03:00
```