a_murilolima_44093
public async generateQrCode(loc: number): Promise {
const agent = this.getAgent();
const accessToken = await this.getAccessToken();
const endpoint = ${this.baseUrl}/v2/loc/${loc}/qrcode;
const config = {
method: 'GET' as Method,
url: endpoint,
headers: {
Authorization: Bearer ${accessToken},
'Content-Type': 'application/json',
},
httpsAgent: agent,
};
const response = await axios(config);
return response.data;
}