Skip to content

Instantly share code, notes, and snippets.

@icodesign
Created September 25, 2016 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icodesign/10d1c04c97f7cabf0a3cec95865cef7c to your computer and use it in GitHub Desktop.
Save icodesign/10d1c04c97f7cabf0a3cec95865cef7c to your computer and use it in GitHub Desktop.
TF Invite
#coding: utf-8
# Please install [fastlane](https://github.com/fastlane/fastlane) first.
import os
bundle_identifier = "xxx"
itunes_user = "yyy"
emails = """
a@gmail.com
b@gmail.com
"""
def invite(email):
command = 'pilot add %s -a %s -u %s' % (email, bundle_identifier, itunes_user)
print command
output = os.popen(command)
print output.read()
if __name__ == '__main__':
email_array = emails.split("\n")
for email in email_array:
if len(email):
invite(email)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment