Sha256: 8a493be5e804ad8d880710e499f2a3591bcfdf10d32858f27bcccc0b33ae4298
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
module FastlaneCore # Find the Apple ID based on the App Identifier class ItunesConnect LIST_APPLE_IDS_URL = "https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/apps/manageyourapps/summary" def find_apple_id(app_identifier) login apps = JSON.parse(page.evaluate_script("$.ajax({type: 'GET', url: '#{LIST_APPLE_IDS_URL}', async: false})")['responseText'])['data'] return apps['summaries'].find { |v| v['bundleId'] == app_identifier }['adamId'].to_i rescue => ex error_occured(ex) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane_core-0.4.0 | lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb |