Created
September 25, 2016 14:06
-
-
Save icodesign/10d1c04c97f7cabf0a3cec95865cef7c to your computer and use it in GitHub Desktop.
TF Invite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: utf-8 | |
# Please install [fastlane](https://github.com/fastlane/fastlane) first. | |
import os | |
bundle_identifier = "xxx" | |
itunes_user = "yyy" | |
emails = """ | |
[email protected] | |
[email protected] | |
""" | |
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