v1.3.0-beta/voice call implemented
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
const VoxeetSecret = require('../VoxeetSecret.json');
|
||||
const fetch = require('node-fetch');
|
||||
module.exports = async (req, res) => {
|
||||
const { key, secret } = VoxeetSecret;
|
||||
const credentials = btoa(encodeURI(key) + ':' + encodeURI(secret));
|
||||
const credentials = Buffer.from(encodeURI(key) + ':' + encodeURI(secret)).toString('base64');
|
||||
const headers = {
|
||||
'Content-Type': 'application/json',
|
||||
'Cache-Control': 'no-cache',
|
||||
|
||||
Reference in New Issue
Block a user