Sha256: bc416cabb741372e550b6dbd486db56d7899a48fe6aaa0499915c5ed47ba63af

Contents?: true

Size: 871 Bytes

Versions: 7

Compression:

Stored size: 871 Bytes

Contents

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

module Spaceship
  class ConnectAPI
    module Users
      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::Users::API)
          self.users_request_client = self
        end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fastlane-2.225.0 spaceship/lib/spaceship/connect_api/users/client.rb
fastlane-2.224.0 spaceship/lib/spaceship/connect_api/users/client.rb
fastlane-2.223.1 spaceship/lib/spaceship/connect_api/users/client.rb
fastlane-2.223.0 spaceship/lib/spaceship/connect_api/users/client.rb
fastlane-2.222.0 spaceship/lib/spaceship/connect_api/users/client.rb
fastlane-2.221.1 spaceship/lib/spaceship/connect_api/users/client.rb
fastlane-2.221.0 spaceship/lib/spaceship/connect_api/users/client.rb