Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need a demo code to create article #18

Open
surinder-enest opened this issue Dec 28, 2017 · 2 comments
Open

need a demo code to create article #18

surinder-enest opened this issue Dec 28, 2017 · 2 comments

Comments

@surinder-enest
Copy link

please write some demo code for how I can use create an article, not getting the input fields

@iefserge
Copy link
Contributor

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

@surinder-enest
Copy link
Author

surinder-enest commented Jan 2, 2018

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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants