2022-06-25 21:38:09 +07:00
|
|
|
const axios = require("axios").default;
|
|
|
|
|
|
|
|
const getTokenFree = async (baseUrl, data = {}) => {
|
2022-06-26 14:28:37 +07:00
|
|
|
const url = `${baseUrl}/__free__/api/get_token`;
|
2022-06-25 21:38:09 +07:00
|
|
|
return axios({
|
|
|
|
method: "POST",
|
|
|
|
url: url,
|
|
|
|
data: {
|
|
|
|
...data,
|
|
|
|
},
|
|
|
|
headers: {
|
|
|
|
"x-access-type": "FREE",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
getTokenFree,
|
|
|
|
};
|