You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Strooss which version of the node-asana are you using? In our v1.X.X (EX:v1.0.5) you would use asana.Client while in v3.X.X [EX: v3.0.6] it's Asana.ApiClient
constAsana=require('asana');letclient=Asana.ApiClient.instance;lettoken=client.authentications['token'];token.accessToken="<YOUR_ASANA_PERSONAL_ACCESS_TOKEN>";letusersApiInstance=newAsana.UsersApi();letuser_gid="me";// String | A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.letopts={};usersApiInstance.getUser(user_gid,opts).then((result)=>{console.log('API called successfully. Returned data: '+JSON.stringify(result.data,null,2));},(error)=>{console.error(error.response.body);});
Types don't really match the code
The text was updated successfully, but these errors were encountered: