Trying to use contentfil entry with API but getting some error TypeError: client.getEntry is not a function . Everything seems good, googled a lot but did not find any answer.
const contentful = require('contentful-management')
const client = contentful.createClient({
space: 'sdfdrf65435',
accessToken: 'sdf43tgfhg34tgdfgdsf',
host: 'preview.contentful.com'
})
console.log("client---->",client)
client.getEntry('sdf34ythrgfgd')
.then((entry) => console.log(entry))
.catch(console.error)
This is the code I tried, but not working somehow