This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client upsells | |
============== | |
- this doesn't seem to work with @change.org accounts, so user a non-change user | |
- delete the browser cookie: prompted_petition | |
- in the change_production repo, open the rails console with: `bundle exec rails c` | |
- create a petition that has 100+ signatures: `FactoryGirl.create(:lead_in_petition)` | |
- get the id of the last petition: `Petition.last.id` | |
- navigate to http://local-change.org/p/:id and sign the petition | |
- you can tell you are in client upsells by the text at the top "You might also like this *suggested* petition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rp = require('request-promise'); | |
const _ = require('lodash'); | |
let emojisList = {}; | |
let allEmojis = {}; | |
let users = {}; | |
let count = 0; | |
const monthsBack = 4; | |
const token = '<get token @ https://api.slack.com/custom-integrations/legacy-tokens>'; |