An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Apple Sales Bot

Post daily Apple sales report summaries to Slack

![Apple Sales Bot Screenshot](https://raw.githubusercontent.com/jhurliman/apple-sales-bot/master/docs/apple-sales-bot-screenshot01.png)

## 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))