Create message draft using Slack API? - slack-api

Is it possible to "draft" a message using API? There is draft_id param in chat.postMessage, but I just don't understand how to use it.
UPD: It's not possible =(

There is no documented API to create draft messages in Slack.
I would suggest dropping a mail to slack and ask about your specific use case.

Related

How to forward an email and change the subject using the Microsoft Graph api

recently I ran into a problem where I was using python imap to automate outlook tasks, but microsft changed basic auth to Oauth now, and I have not being able to authenticate ever since, I get an error
imaplib.error: AUTHENTICATE failed.
So I started working with the Microsoft graph API, in which I can get the information that I need but once I need to forward an email I can't setup a custom subject, I can just add a comment and toRecepient custom arguments.
https://learn.microsoft.com/en-us/graph/api/message-forward?view=graph-rest-1.0&tabs=http
any advice here ?
If you use the Create-Forward endpoint https://learn.microsoft.com/en-us/graph/api/message-createforward that will create a draft message of the forward which you can then patch any message property you want to update and then send.
The one thing they don't mention in the documentation is you should set the Prefer: outlook.timezone header to make sure the dates in you response are set the local time of the responder.

Posting a reply to a tweet using Zapier

I was wondering if there is a way to post a reply to a specific tweet using Zapier? By the looks of it, the only way would be to use webhooks and post the json, but it just would be so much simpler if I could the built in twitter functionality of Zapier.
This isn't possible because it goes against Twitter's policies: https://zapier.com/help/twitter/#using-zapier-as-a-twitter-auto-responder

Asana api to get content from inbox

I want to get updates from asana inbox directly using asana api.
Is there any way this can be done using api as i am unable to find anything in api documentation. If there is anything that i might have missed in api please point me to that.
Unfortunately, we don't have an endpoint for the inbox. As was discussed in another question, you may be able to get this by grabbing every task across all projects into a local database. You would then need to search for tasks where assignee_status is set to inbox.

Is there a way to create a chat room in Slack using the URL?

Our team uses Slack. I would like our custom management app to automatically generate links to Slack chatrooms.
We can join rooms using the direct URL: [team].slack.com/messages/customRoom
Can we use a similar URL to create the room if non-existant? Something like: [team].slack.com/messages/customRoom/create
No, but the Slack API allows you to check if a channel exist and create a new one on demand. So you can get this functionality with a simple script, e.g. in PHP that uses the Slack API.
Here is the documentation for the Slack API method to create a new channel.

Mailcore retrieving folders and compose functionality

I am using Mailcore (https://github.com/MailCore/mailcore2) for accessing IMAP mail.
I could able to get all the inbox mails using this sample given. I able to retrieve all the mail folders as well. I want to implement compose functionality using this. I am not getting API details or samples for this. Could someone please help me ?
IMAP is an email retrieval protocol, it is not used for sending. For that, you have SMTP. So you were probably just looking in the wrong place...
I've never used mailcore2, but after reviewing their wiki pages, I found their example for composing and sending messages using STMP here.

Resources