1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00

Created OTPConfiguration.GetQrImage (markdown)

2021-06-01 15:46:08 +03:00
parent e3c2fc432b
commit d3dde8e614
+19
@@ -0,0 +1,19 @@
Namespace: `SimpleOTP.Models`
Assembly: `SimpleOTP.dll`
Generates QR code image for current configuration with Google Chart API.
```csharp
public async Task<string> GetQrImage(int qrCodeSize = 300, int requestTimeout = 30);
```
### Parameters
`qrCodeSize` `Int32`
QR code image size in pixels.
`requestTimeout` `Int32`
Web request timeout in seconds.
### Returns
string-encoded PNG image.