Skip to content

SwarajSalesforce/SalesforceTwitterIntegration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-salesforce-stream

Stream tweets into Salesforce via Platform Events

NOTE: This project requires a Twitter app.

Install

  1. Type git clone git@github.com:swaraj/salesforce-stream.git
  2. Type cd twitter-salesforce-stream
  3. Type npm install

Configure

You will need the following environment variables:

Twitter

  1. TWITTER_CONSUMER_KEY -- Twitter app key
  2. TWITTER_CONSUMER_SECRET -- Twitter app secret
  3. TWITTER_ACCESS_TOKEN -- Twitter client token
  4. TWITTER_ACCESS_TOKEN_SECRET -- Twitter client secret
  5. TWITTER_SEARCH_STRING -- Search keywords, comma separated

Salesforce

  1. SALESFORCE_CLIENT_ID -- Salesforce Connected App ID
  2. SALESFORCE_CLIENT_SECRET -- Salesforce Connected App secret
  3. SALESFORCE_USERNAME -- Your Salesforce username
  4. SALESFORCE_PASSWORD -- Your Salesforce password
  5. SALESFORCE_SECURITY_TOKEN -- Your Salesforce security token

Node.js

  1. NODE_ENV -- Use production for production, or sandbox for scratch orgs

If you're deploying with Heroku, just throw these variables into an .env file in the project base directory and use heroku local to launch the app.

Here's a template to copy/paste (or you can rename .exampleenv in this project to .env):

TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_TOKEN_SECRET=
TWITTER_SEARCH_STRING=
SALESFORCE_CLIENT_ID=
SALESFORCE_CLIENT_SECRET=
SALESFORCE_USERNAME=
SALESFORCE_PASSWORD=
SALESFORCE_SECURITY_TOKEN=
NODE_ENV=

Run

  1. Type npm start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors