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

Support sending text in post and render them #158

Closed
yodatak opened this issue Nov 4, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@yodatak
Copy link

commented Nov 4, 2017

Any way to implement this , like posting the html or event a URL

Maybe like this ?
'It would be something like POSTing to an url the parameters with the HTML text and the various attributes like title/subtitle, together with __username and __password, create the revision and schedule its publishing, returning the (expected) text url. It would not appear right away (because of the async publishing), but shortly enough and will work just fine.' melmothx

@melmothx

This comment has been minimized.

Copy link
Owner

commented Nov 4, 2017

Yes, that's totally doable and will be done soon.

melmothx added a commit that referenced this issue Nov 4, 2017

Add a /remote/create API endpoint.
Accept the same parameters as POST as the form under /action/text/new
plus the __auth_user and __auth_pass needed to pass the
authentication.

Return a 401 response if the authentication failed, otherwise a 200
response JSON-encoded with these keys:

 - url The final URL of the text created. When returning it still
   doesn't exist.
 - job The URL of the job (while building). Accessible right away
 - error The error string if something didn't work

Address #158
@melmothx

This comment has been minimized.

Copy link
Owner

commented Nov 4, 2017

This is done but needs proper documentation, so letting it open.

@melmothx

This comment has been minimized.

Copy link
Owner

commented Nov 7, 2017

Documented here

@melmothx

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.