skip to Main Content

Not able to make api call using axios instance – Javascript

export class TrelloService { public instance: AxiosInstance; constructor(token: string) { this.instance = axios.create({ baseURL: `https://api.trello.com/1?key=${process.env.TRELLO_API_KEY}&token=${token}`, }); } public async getUserDetails(email: string): Promise<any> { const userDetails = await this.instance.get(`/members/${email}`); return userDetails; } public static async getUserDetails2( email: string, token: string, throwError…

VIEW QUESTION
Back To Top
Search