Skip to content
Discussion options

You must be logged in to vote

You're making 2 parallel queries when they should be sequential. You need to login first, THEN make a second request with the page creation. Having both in the same request makes no sense.

Although the proper way to do it would be to use an API token (that you generate via the Admin > API Access), rather than using the authentication endpoint with a user/pass. You need to pass the token via the Authorization header, as explained in the docs.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by NGPixel
Comment options

You must be logged in to vote
1 reply
@NGPixel
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants