This is a script that helps export DMs from Slack using their API
- Go to https://api.slack.com/custom-integrations/legacy-tokens
- Get a token (the test pages )
- Copy the token locally (Don't share this ever)
- Go to https://api.slack.com/methods/users.list/test and press Test Method
- Find the correct "name" (ex: Josh)
- Copy the (User) Id above (ex: U0PUVNTB2)
- Go to https://api.slack.com/methods/im.list/test
- Press ctrl-F and search for the User Id. You'll find it next to "user": _____
- Copy the (DM Chat) Id above it (ex. D6Y2YP56U)
- Go to http://jsfiddle.net/k6ed0o4n/
- Paste the token where it says token
- Paste the DM Chat Id where it says channel
- Paste the User Id where it says other
- Look down a bit and change the person's name in the quotes "Other: " where it says // Replace Me