Skip to content

What is the bundle files in create article. #19

@surinder-enest

Description

@surinder-enest

Here is the structure of how I'm using this

appleNewsObject = {"title":"dd","version":"1.5","language":"en","identifier":"dd","metadata":{"thumbnailURL":"ddd"},"layout":{"columns":"10","width":"1024","margin":"85","gutter":"20"},"components":[{"role":"heading1","text":"HEADING"},{"role":"title","text":"dd"},{"role":"intro"},{"role":"byline","text":"dddd"},{"role":"body","format":"html","text":"

Add some text here

"},{"role":"body","format":"html","text":"

Add some text here

"}]}

https://www.mydomain.com/test/article.json

My Json file has same data as "appleNewsObject"

var metadata = {}

client.createArticle({
channelId: accounts[index].channelId,
article: appleNewsObject,
bundleFiles: [
'https://www.mydomain.com/test/article.json',
metadata
],
}, (err, response) => {
if (err) {
console.log(err);
} else {
console.log(response);
}
});

This is giving me file type error for file "https://www.mydomain.com/test/article.json"

Please reply asap. I need the solution really urgent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions