Sha256: 5c4c4e5ca40f4f55ab5aa10b3e92cadf90c38dfcad701165fb4b812349ef5bec

Contents?: true

Size: 874 Bytes

Versions: 53

Compression:

Stored size: 874 Bytes

Contents

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

module Spaceship
  class ConnectAPI
    module Tunes
      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::Tunes::API)
          self.tunes_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.220.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.219.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.218.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-security-patched-2.216.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.217.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.216.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.215.1 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.215.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-mercafacil-2.214.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.214.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.213.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.212.2 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane_pricing_fix-2.212.1 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.212.1 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.212.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.211.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.210.1 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.210.0 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.209.1 spaceship/lib/spaceship/connect_api/tunes/client.rb
fastlane-2.209.0 spaceship/lib/spaceship/connect_api/tunes/client.rb