Class: Spaceship::ConnectAPI::Tunes::Client

Inherits:
APIClient show all
Defined in:
spaceship/lib/spaceship/connect_api/tunes/client.rb

Constant Summary

Constants inherited from Spaceship::Client

Spaceship::Client::AUTH_TYPES, Spaceship::Client::AccessForbiddenError, Spaceship::Client::AppleTimeoutError, Spaceship::Client::BadGatewayError, Spaceship::Client::BasicPreferredInfoError, Spaceship::Client::GatewayTimeoutError, Spaceship::Client::InsufficientPermissions, Spaceship::Client::InternalServerError, Spaceship::Client::InvalidUserCredentialsError, Spaceship::Client::NoUserCredentialsError, Spaceship::Client::PROTOCOL_VERSION, Spaceship::Client::ProgramLicenseAgreementUpdated, Spaceship::Client::TooManyRequestsError, Spaceship::Client::USER_AGENT, Spaceship::Client::UnauthorizedAccessError, Spaceship::Client::UnexpectedResponse

Instance Attribute Summary

Attributes inherited from APIClient

#token

Attributes inherited from Spaceship::Client

#client, #csrf_tokens, #logger, #provider, #user, #user_email

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from APIClient

#build_params, #delete, #get, #hostname, #patch, #post, #web_session?

Methods inherited from Spaceship::Client

#UI, #ask_for_2fa_code, #choose_phone_number, client_with_authorization_from, #cookie, #detect_most_common_errors_and_raise_exceptions, #fastlane_user_dir, #fetch_olympus_session, #fetch_program_license_agreement_messages, #handle_two_factor, #handle_two_step, #handle_two_step_for_device, #handle_two_step_or_factor, #itc_service_key, #load_session_from_env, #load_session_from_file, #login, login, #page_size, #paging, #parse_response, #persistent_cookie_path, #phone_id_from_masked_number, #phone_id_from_number, #push_mode_from_masked_number, #raise_insufficient_permission_error!, #request, #request_two_factor_code_from_phone, #request_two_factor_code_from_phone_choose, #send_shared_login_request, #sms_automatically_sent, #sms_fallback, spaceship_session_env, #store_cookie, #store_session, #team_id, #team_id=, #team_information, #team_name, #teams, #update_request_headers, #user_details_data, #with_retry

Constructor Details

#initialize(cookie: nil, current_team_id: nil, token: nil, another_client: nil) ⇒ Client

Returns a new instance of Client.



9
10
11
12
13
14
15
16
# File 'spaceship/lib/spaceship/connect_api/tunes/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)

  self.extend(Spaceship::ConnectAPI::Tunes::API)
  self.tunes_request_client = self
end

Class Method Details

.hostnameObject



18
19
20
# File 'spaceship/lib/spaceship/connect_api/tunes/client.rb', line 18

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