testflight_invite
testflight_invite copied to clipboard
Remove Tester
I wonder is it possible to implement #remove_tester
?
Nevermind, figured it out.
def remove_tester(email)
login
url = "/WebObjects/iTunesConnect.woa/ra/user/externalTesters/#{@app_id}/"
params = { users: [{emailAddress: {errorKeys: [], value: email},
firstName: {value: ''},
lastName: {value: ';'},
testing: {value: false} # <------------ simply set value: false
}]}
response = request(url, :post, params.to_json)
raise TestFlight::InviteDuplicateException.new if response.code.to_i == 500 # 500 if tester already exists... This is not how you HTTP, Apple.
return JSON.parse(response.body)['statusCode']
end
Can you send a PR for this please?
Hello, is your script still working ? thank you to replying