spaceship/lib/spaceship/tunes/tunes_client.rb
# ITunesConnectError is only thrown when iTunes Connect raises an exception
ITunesConnectError is only thrown when iTunes Connect raises an exception
ITunesConnectError is only thrown when iTunes Connect raises an exception
def service_key
      return @service_key if @service_key
      js = request(:get, "https://itunesconnect.apple.com/itc/static-resources/controllers/login_cntrl.js")
      @service_key ||= js.body.match(/itcServiceKey = '(.*)'/)[1]
    end
def service_key return @service_key if @service_key js = request ( :get , "https://itunesconnect.apple.com/itc/static-resources/controllers/login_cntrl.js" ) @service_key ||= js . body . match ( / itcServiceKey = '(.*)' / ) [ 1 ] end
ITunesConnectError is only thrown when iTunes Connect raises an exception
ITunesConnectError is only thrown when iTunes Connect raises an exception
# We need a service key from a JS file to properly auth