Skip to content

Retrieve and synchronize slack chat logs with salesforce.

Notifications You must be signed in to change notification settings

dyncan/slackforce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slackforce

A Slack and Salesforce integration project written in Golang.

Get Slack Token and Cookie

TOKEN

  1. Open your browser's Developer Console.

    • In Firefox, under Tools -> Browser Tools -> Web Developer tools in the menu bar
    • In Chrome, click the 'three dots' button to the right of the URL Bar, then select 'More Tools -> Developer Tools'
  2. Switch to the console tab.

  3. Paste the following snippet and press ENTER to execute:

   JSON.parse(localStorage.localConfig_v2).teams[document.location.pathname.match(/^\/client\/(T[A-Z0-9]+)/)[1]].token
  1. Token value is printed right after the executed command (it starts with"xoxc-"), save it somewhere for now.

COOKIE

  1. Switch to Application_ tab and select Cookies in the left navigation pane.
  2. Find the cookie with the name "d". That's right, just the letter "d".
  3. Double-click the Value of this cookie.
  4. Press Ctrl+C or Cmd+C to copy it's value to clipboard.
  5. Save it for later.

Setting up the application

  1. Create the file named .env.
  2. Add the token and cookie values to it. End result should look like this:
    SLACK_TOKEN=xoxc-<...elided...>
    SLACK_COOKIE=xoxd-<...elided...>
    
    Alternatively, if you saved the cookies to the file, it will look like this::
    SLACK_TOKEN=xoxc-<...elided...>
    SLACK_COOKIE=path/to/slack.com_cookies.txt
    
  3. Save the file and close the editor.

Usage

make start

About

Retrieve and synchronize slack chat logs with salesforce.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published