slack-history-export
slack-history-export copied to clipboard
how to export direct message from multiple users?
I have window of direct messages form two users. In the header of Slack I can see name_of_1st_user, name_of_2nd_users
. It is not a channel
, group
nor direct message to single user
so how to export this?
I have tried this:
-u "name_of_1st_user,name_of_2nd_users"
-g "name_of_1st_user,name_of_2nd_users"
-c "name_of_1st_user,name_of_2nd_users"
-u "@name_of_1st_user, name_of_2nd_users"
-g "@name_of_1st_user, name_of_2nd_users"
-c "@name_of_1st_user, name_of_2nd_users"
-u "name_of_1st_user%2Cname_of_2nd_users"
-g "name_of_1st_user%2Cname_of_2nd_users"
-c "name_of_1st_user%2Cname_of_2nd_users"
-u "name_of_1st_use\,name_of_2nd_users"
-g "name_of_1st_user,\name_of_2nd_users"
-c "name_of_1st_user,\name_of_2nd_users"
...but none of those worked for me.
@webmato: you can get the composed name of the group by using Slack's API tester:
go to: https://api.slack.com/methods/mpim.list/test to get a list of your mpim groups. then you can use those group names with the --g flag in the normal way.
they are named according to the format "mpdm-user1--user2--user3-1".
of course you can try all the permutations of the ordering of the usernames if you want to skip the API tester step above.
Hi
In addition I found out that when you run export like
slack-history-export --group "#all" --token "MY_TOKEN"
I get files like:
- for multi-user conversations:
TIMESTAMP-mpdm-USER1--USER2--USER3-1-slack-history.json
TIMESTAMP-mpdm-USER1--USER2-1-slack-history.json
- For private channels (as far as I noticed right now) thy are treated the same as multi-user conversations - at least in this export tool
TIMESTAMP-PRIVATE_CHANNEL1-slack-history.json
TIMESTAMP-PRIVATE_CHANNEL2-slack-history.json
Folowing this example, when I generate using @davev exampl as well as following auto-generated filenam:
slack-history-export --group "mpdm-USER1--USER2--USER3-1" --token "MY_TOKEN"
It works, but without --filename
parameter I get file with undefined in name
TIMESTAMP-undefined-slack-history.json
Maybe this will help
Hmm I want to do the following export a conversation between two users on Slack. I did try to use the following method but it doesn't work work me.
If I call the mpim.list api I get only this
{
"ok": true,
"cursor_column_name": "team",
"groups": []
}
Is this possible?