Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

how to export direct message from multiple users? #40

Open
webmato opened this issue Mar 7, 2017 · 3 comments
Open

how to export direct message from multiple users? #40

webmato opened this issue Mar 7, 2017 · 3 comments
Assignees

Comments

@webmato
Copy link

webmato commented Mar 7, 2017

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.

@davev
Copy link

davev commented May 6, 2017

@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.

@hisabimbola hisabimbola self-assigned this May 8, 2017
@mariuszniemiec
Copy link

mariuszniemiec commented Jun 6, 2017

Hi

In addition I found out that when you run export like
slack-history-export --group "#all" --token "MY_TOKEN" I get files like:

  1. for multi-user conversations:
    TIMESTAMP-mpdm-USER1--USER2--USER3-1-slack-history.json
    TIMESTAMP-mpdm-USER1--USER2-1-slack-history.json
  2. 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

@davidgatti
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants