Sha256: 38c441b44c5c80b465468562814ad55f2587ffc09ad06846ce14297a68facac2

Contents?: true

Size: 895 Bytes

Versions: 53

Compression:

Stored size: 895 Bytes

Contents

require_relative '../api_client'
require_relative './testflight'
require_relative '../../tunes/tunes_client'

module Spaceship
  class ConnectAPI
    module TestFlight
      class Client < Spaceship::ConnectAPI::APIClient
        def initialize(cookie: nil, current_team_id: nil, token: nil, another_client: nil)
          another_client ||= Spaceship::Tunes.client if cookie.nil? && token.nil?

          super(cookie: cookie, current_team_id: current_team_id, token: token, another_client: another_client)

          # Used by most iris requests starting in July 2021
          @additional_headers = { 'x-csrf-itc': '[asc-ui]' } if another_client

          self.extend(Spaceship::ConnectAPI::TestFlight::API)
          self.test_flight_request_client = self
        end

        def self.hostname
          'https://appstoreconnect.apple.com/iris/v1/'
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 4 rubygems

Version Path
fastlane-2.208.0 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.207.0 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.206.2 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.206.1 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.206.0 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.205.2 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.205.1 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.205.0 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.204.3 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.204.2 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.204.1 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.204.0 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.203.0 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.202.0 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.201.2 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.201.1 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.201.0 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.201.0.rc3 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.201.0.rc2 spaceship/lib/spaceship/connect_api/testflight/client.rb
fastlane-2.201.0.rc1 spaceship/lib/spaceship/connect_api/testflight/client.rb