class Spaceship::ConnectAPI::Users::Client

Public Class Methods

hostname() click to toggle source
# File spaceship/lib/spaceship/connect_api/users/client.rb, line 21
def self.hostname
  'https://appstoreconnect.apple.com/iris/v1/'
end
new(cookie: nil, current_team_id: nil, token: nil, another_client: nil) click to toggle source
Calls superclass method Spaceship::ConnectAPI::APIClient::new
# File spaceship/lib/spaceship/connect_api/users/client.rb, line 9
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