# Generate Test Social Spike Events
This script sends test social spike events to real GetStream.io feeds for testing purposes.

:warning: Notifications will be sent to **everyone** following specified participant!

:rotating_light: Use in production with extreme caution after launch!

## Setup

1. Create virtual environment and install package
	```
    $ python -m venv env
    $ source env/bin/activate
    $ pip install -r requirements.txt
    ```
2. Set GetStream.io credentials
	1. Go to [GetStream.io dashboard](https://getstream.io/dashboard/organization/24979/)
	2. Select app (dev-notifications, qa-notifications, prod-notifications)
    3. Go to bottom of "Feed Groups" to see "App Access Keys"
	4. Copy key and secret
3. Set environment variables
	```
    export STREAM_API_KEY='key-from-step-2.v'
    export STREAM_API_SECRET='secret-from-step-2.v'
    ```
4. Run script
    * ARGV1 => UUID of participant generating the spike
    * ARGV2 => date of spike, limit of 1 spike per participant-day
	```
    $ source env/bin/activate
    $ python generate_event.py 52874287-cbf0-420f-a873-6f5b8ff9d767 2020-05-01
    ```
