https://github.com/jhurliman/apple-sales-bot
Post daily Apple sales report summaries to Slack
https://github.com/jhurliman/apple-sales-bot
analytics apple itunesconnect sales slack-bot
Last synced: 3 months ago
JSON representation
Post daily Apple sales report summaries to Slack
- Host: GitHub
- URL: https://github.com/jhurliman/apple-sales-bot
- Owner: jhurliman
- License: mit
- Created: 2017-07-28T18:44:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-29T20:46:49.000Z (about 8 years ago)
- Last Synced: 2025-04-12T22:36:49.182Z (6 months ago)
- Topics: analytics, apple, itunesconnect, sales, slack-bot
- Language: JavaScript
- Size: 70.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apple Sales Bot
Post daily Apple sales report summaries to Slack

## Instructions
1. `npm install`
2. `npm run package`
3. Create an AWS Lambda script from `apple-sales-bot.zip`
4. Set the following environment variables for the Lambda script:
- **APPLE_USER_ID** - Your iTunes Connect email address
- **APPLE_ACCESS_TOKEN** - Your iTunes Connect Access Token ([instructions](https://www.google.com/search?q=Generate+access+token+in+iTunes+Connect))
- **APPLE_VENDOR_NUMBER** - Your [Apple Vendor ID](https://apple.stackexchange.com/questions/65267/how-do-i-find-out-what-my-apple-vendor-id-is)
- **OPEN_EXCHANGE_RATES_APP_ID** - An access token for [Open Exchange Rates](https://openexchangerates.org/)
- **S3_PERSIST_URL** - An S3 URL for a file that will be created by the Lambda script, ex: s3://my-salesbot/lastrun.txt. Make sure your Lambda script has permission to read and write the given S3 bucket
- **SLACK_WEBHOOK** - An incoming Slack webhook the script will post to
5. Setup a Scheduled Event trigger for the Lambda script to run at a regular interval such as hourly ([instructions](http://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.html))