Johannes
At Buffer, you can prefill the text and URL to share via URL-Parameters to the Create Post dialog, e.g., https://publish.buffer.com/compose?url=URL&text=MyText
This would be really helpful if this is possible for the /posts/create
endpoint as well.
Besides the text and URL, it would be helpful if it is possible to provide the time to publish the post and the accounts to select as well.
Then you can create a JavaScript Bookmark which takes the title and URL of the current website. Or create a Button inside the WordPress Block Editor to share the current post with the title, URL and set a time if the post is scheduled.
Prefill Text, URL, Time for new Post from URL-Parameter
-
Dima Botezatu moved item to board Live
1 year ago -
Dima Botezatu moved item to project Mixpost Pro
1 year ago -
Johannes created the item
1 year ago
Sascha Foerster
@Johannes Does it work as expected? I saw the API documentation but didn't see a description of this way of creating a post.
Johannes
Item authorHi @Sascha-Foerster,
yes, I've submitted a PR. You can add link, title and body as URL parameters to the
/posts/create
endpoint.@Dima-Botezatu could you add this to the documentation?
Sascha Foerster
@Johannes Can I also define the workspace, if there are multiple workspaces? :) I would like to integrate that with our Wekan-Kanban-Board, so the content can easily be transferred.
Johannes
Item author@Sascha-Foerster
yes, the full URL of the
/posts/create
endpoints contains the workdspace UUID e.g.https://mymixpost.com/mixpost/my-uuid-sdfdsfs/posts/create
Sascha Foerster
I tried it with ?url=URL&text=MyText, but doesn't seem to work. What's the correct syntax? :)
Johannes
Item author@Sascha-Foerster
link
,title
andbody
e.g. ?link=URL&body=MyTextJohannes
Item authorI just found out how to set the schedule datetime. You can add YYYY-MM-DD HH:MM to the URL after
/create
e.g.https://mymixpost.com/mixpost/my-uuid-sdfdsfs/posts/create/2024-05-01 12:00
Johannes
Item authorIf someone needs a Bookmark to share a link with Mixpost: https://gist.github.com/goaround/e669fffe013bcc63ebbf85bf04e0745b