fastlane - Got 403 when I touch group with delete method in testflight -


after deleting group testflight got url delete method show follow:

curl 'https://itunesconnect.apple.com/testflight/v2/providers/team_id/apps/app_id/groups/969071cb-0615-4dac-8b1a-166fd7e89a98?deletetesters=false' \ -xdelete \ -h 'dnt: 1' \ -h 'referer: https://itunesconnect.apple.com/webobjects/itunesconnect.woa/ra/ng/app/app_id/testflight?section=iosbuilds' \ -h 'origin: https://itunesconnect.apple.com' \ -h 'accept: application/json, text/plain, */*' \ -h 'user-agent: mozilla/5.0 (macintosh; intel mac os x 10_12_6) applewebkit/603.3.8 (khtml, gecko) version/10.1.2 safari/603.3.8' \ -h 'x-csrf-itc: itc' 

then realized process fastlane like:

module spaceship   module testflight     module groupoperations        ## todo: got 403 error       def delete_group_for_app(apple_id, group_id, delete_testers)         assert_required_params(__method__, binding)          binding.pry         url = "providers/#{team_id}/apps/#{apple_id}/groups/#{group_id}?deletetesters=#{delete_testers.to_s}"         refer = "https://itunesconnect.apple.com/webobjects/itunesconnect.woa/ra/ng/app/#{apple_id}/testflight?section=group&subsection=testers&id=#{group_id}"          response = request(:delete) |req|           req.url url           req.headers['content-type'] = 'application/json'           req.headers['referer'] = refer           req.headers['origin'] = 'https://itunesconnect.apple.com'           req.headers['x-requested-with'] = 'xmlhttprequest'           req.headers['x-csrf-itc'] = 'itc'           req.headers['accept'] = 'application/json, text/plain, */*'           req.headers['connection'] = 'keep-alive'         end         handle_response(response)       end     end      client.class_eval { include groupoperations }     class client       include groupoperations     end   end end 

and got 403 when called method after login, select team.

what want ask dose itc support this? if supports, how can fix it?

yes. supports.just adjust http header , pass.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -