Need help with itunes-connect-slack?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

erikvillegas
150 Stars 29 Forks 31 Commits 8 Opened issues

Description

Posts app update info from iTunes Connect into Slack

Services available

!
?

Need anything else?

Contributors list

No Data

itunes-connect-slack

These scripts fetch app info directly from iTunes Connect and posts changes in Slack as a bot. Since iTC doesn't provide event webhooks, these scripts use polling with the help of Fastlane's Spaceship.

Set up

Environment Variables

These scripts read specific values from the bash environment. Be sure to set these to the appropriate values:

bash
export BOT_API_TOKEN="xoxb-asdfasdfasfasdfasdfsd" # The API Token for your bot, provided by Slack
export itc_username="[email protected]" # The email you use to log into iTunes Connect
export itc_team_id=77416800,77416801 # specify itunes team ids if user has an access to multiple ones (comma separated)
export bundle_id="com.best.app" # The bundle ID of the app you want these scripts to check

Install node modules

sudo gem install fastlane
npm install @slack/[email protected] --save
npm install dirty --save
npm install moment --save

Store your iTunes Connect password

You can use Fastlane's CredentialsManager to store your password. Enter this command and it will prompt you for your password:

bash
fastlane fastlane-credentials add --username [email protected]

Channel info

Set the specific channel you'd like the bot to post to in

post-update.js
. By default, it posts to
#ios-app-updates
.

Polling interval

In

poll-itc.js
, set the
pollIntervalSeconds
value to whatever you like.

Running the scripts

node poll-itc.js

Or you can use the forever tool to keep it up indefinitely:

base
forever start poll-itc.js

Files

get-app-status.rb

Ruby script that uses Spaceship to connect to iTunes Connect. It then stdouts a JSON blob with your app info. It only looks for apps that aren't yet live.

poll-itc.js

Node script to invoke the ruby script at certain intervals. It uses a key/value store to check for changes, and then invokes

post-update.js
.

post-update.js

Node script that uses Slack's node.js SDK to send a message as a bot. It also calculates the number of hours since submission.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.