Open itsgoofer opened 6 years ago
I'm trying to use the apis with async/await
const api = createBitbucketAPI({ basicAuth: { username: credentials.username, password: credentials.password } }).promised
var user = await api.user.get() console.log(user) //Cannot read property 'get' of undefined
ideas?
Check
const api = createBitbucketAPI({ basicAuth: { username: credentials.username, password: credentials.password } })
var user = await api.user.promised.get()
I'm trying to use the apis with async/await
const api = createBitbucketAPI({ basicAuth: { username: credentials.username, password: credentials.password } }).promised
var user = await api.user.get() console.log(user) //Cannot read property 'get' of undefined
ideas?