Hey all-
I am a moron.
I forgot the /api/v3 in the API url.
fml
Hey guys!
I just startet to experiment with the plugin dev inside of nodebb.
I used the quickstart plugin to start.
I addes following hook in libary.js
{
"hook": "action:post.save", "method": "testpostsave"
}
method testpostsave
plugin.testpostsave = function (postData) {
console.log("POSTTTTEEEEDD" + postData);
};
Console Output is:
POSTTTTEEEEDD [object Object]
Now... how can I work with the Object?
Is it the same as via http://example.com/api/*/*/
Or how do I get to username, tags and URL?
Thank you in advance!