Hi Atlassian Devellopers ,
i am develloping a Macro in add-on on confluence cloud , i am using nodeJS and ExpreeJs and i want to add PROPERTY called "spgviewspage"
to the meta-data of a confluence page with ID equal to pageId ( i get it via GET methode using rest api call )
i didn't find a clearly documentation that describe : how the POST methode for sending Data it can be , contrariwise i found a tutorial which explain the GET methode here is the lik <<https://developer.atlassian.com/confcloud/lesson-2-rise-of-the-macros-39987235.html>> , so i tried to impliments a post methode bellow using the same concept.
//**********************************************
getHTTPClient(clientKey,userKey).post('/rest/api/content/pageId/property/',function (req, res) {
var con=JSON.stringify(res)//valeur JavaScript en chaîne JSON
var newViwspage = {"key":"spgviewpages","value":0};
req.send(JSON.stringify(newViwspage));
//*****************************************
but it display me an error message "req.send is not a function "
i am stack in this for more than a week i realy need #HELP
Reagrds Basma
I wish I could be of more help, but I am not a developer. Please try community.developer.atlassian.com. That's where our developer community can be found.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.