need a demo code to create article
surinder-enest opened this issue · comments
please write some demo code for how I can use create an article, not getting the input fields
Thanks, I agree docs are lacking here, we need to improve them.
For some usage example, take a look at the script that tests it https://github.com/micnews/apple-news/blob/master/live-test/live-api-test.js#L86
still not clear what is the use of these bundle Files.
is it require to send these images in create article request?
const bundleFiles = {
'image1': 'http://localhost:' + port + '/image-1.png',
'image2': 'http://localhost:' + port + '/image-1.jpg'
};
if I'm sending the empty object in bundleFilde ={}
then getting this error.
message:"{"errors":[{"code":"INVALID_DOCUMENT","keyPath":["metadata","thumbnailURL"],"message":"Invalid URL=[some ]."}]}"
(I don't know why but API does 't return a proper error message )