class Spaceship::ConnectAPI::Users::Client
Public Class Methods
hostname()
click to toggle source
# File spaceship/lib/spaceship/connect_api/users/client.rb, line 27 def self.hostname 'https://appstoreconnect.apple.com/iris/v1/' end
instance()
click to toggle source
# File spaceship/lib/spaceship/connect_api/users/client.rb, line 8 def self.instance # Verify there is a token or a client that can be used if Spaceship::ConnectAPI.token if @client.nil? || @client.token != Spaceship::ConnectAPI.token @client = Client.new(token: Spaceship::ConnectAPI.token) end elsif Spaceship::Tunes.client # Initialize new client if new or if team changed if @client.nil? || @client.team_id != Spaceship::Tunes.client.team_id @client = Client.client_with_authorization_from(Spaceship::Tunes.client) end end # Need to handle not having a client but this shouldn't ever happen raise "Please login using `Spaceship::Tunes.login('user', 'password')`" unless @client @client end