---
sidebar_position: 8
description: Get QR and other functions to work with GreenAPI in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, GreenAPI]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get QR
 Receives authorization QR code



`Function GetQR(Val AccessParameters) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | AccessParameters | --access | Structure Of KeyAndValue | &#x2714; | Access parameters. See FormAccessParameters |

  
  Returns:  BinaryData, Map Of KeyAndValue - QR code or error information

:::tip
Method at API documentation: [QR](https://green-api.com/docs/api/account/QR/)
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    ApiUrl           = "https://7105.api.greenapi.com";
    MediaUrl         = "https://7105.media.greenapi.com";
    IdInstance       = "71051...";
    ApiTokenInstance = "425010d90e114aa6b78f0969e...";

    AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
    Result           = OPI_GreenAPI.GetQR(AccessParameters);
```
 



```json title="Result"
NOT JSON: 3C 68 74 6D 6C 3E 0D 0A 3C 68 65 61 64 3E 3C 74 69 74 6C 65 3E 35 30 34 20 47 61 74 65 77 61 79 20 54 69 6D 65 2D 6F 75 74 3C 2F 74 69 74 6C 65 3E 3C 2F 68 65 61 64 3E 0D 0A 3C 62 6F 64 79 3E…
```
