Method: Spaceship::Client#fetch_program_license_agreement_messages

Defined in:
spaceship/lib/spaceship/client.rb

#fetch_program_license_agreement_messagesObject

Get contract messages from App Store Connect’s “olympus” endpoint



667
668
669
670
671
672
673
674
675
676
677
678
679
680
# File 'spaceship/lib/spaceship/client.rb', line 667

def fetch_program_license_agreement_messages
  all_messages = []

  messages_request = request(:get, "https://appstoreconnect.apple.com/olympus/v1/contractMessages")
  body = messages_request.body
  if body
    body = JSON.parse(body) if body.kind_of?(String)
    body.map do |messages|
      all_messages.push(messages["message"])
    end
  end

  return all_messages
end