Sha256: a59fa383b371b6d218855675ade9b3a0507816211be95eece9038a0d416de7d3

Contents?: true

Size: 561 Bytes

Versions: 31

Compression:

Stored size: 561 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
      # Do nothing right now...
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
fastlane_core-0.7.0 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.6.2 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.6.1 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.6.0 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.5.2 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.5.1 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.5.0 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.4.3 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.4.3.pre lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.4.2 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb
fastlane_core-0.4.1 lib/fastlane_core/itunes_connect/itunes_connect_apple_id.rb