lib/deploygate/client/apps.rb
def upload_app(
        owner:,
        file_path:,
        message: nil,
        dist_key: nil,
        dist_name: nil,
        release_note: nil,
        disable_notify: nil,
        visibility: nil
      )
        endpoint = "/api/users/#{owner}/apps"
        res = api.post endpoint do |request|
          request.body = {
            file: Faraday::UploadIO.new(file_path, 'octet/stream'),
            message: message,
            distribution_key: dist_key,
            distribution_name: dist_name,
            release_note: release_note,
            disable_notify: disable_notify,
            visibility: visibility
          }
        end
        Response.new(res)
      end
# Upload an application binary file.
# @see https://docs.deploygate.com/reference#upload
#
# @param owner [String] User or organization name
# @param file_path [String] Application binary file(ipa/apk)
# @option message [String] Description of the file
# @option dist_key [String] Distribution page hash
# @option dist_name [String] Distribution page name
# @option release_note [String] Message for distribution page
# @option disable_notify [Boolean] Email notification for push(only ios)
# @option visibility [String] Application privacy(private/public)
# @return [Deploygate::Client::Response]
Upload an application binary file.
Upload an application binary file .
def upload_app(
        owner:,
        file_path:,
        message: nil,
        dist_key: nil,
        dist_name: nil,
        release_note: nil,
        disable_notify: nil,
        visibility: nil
      )
        endpoint = "/api/users/#{owner}/apps"
        res = api.post endpoint do |request|
          request.body = {
            file: Faraday::UploadIO.new(file_path, 'octet/stream'),
            message: message,
            distribution_key: dist_key,
            distribution_name: dist_name,
            release_note: release_note,
            disable_notify: disable_notify,
            visibility: visibility
          }
        end
        Response.new(res)
      end
def upload_app ( owner : , file_path : , message : nil , dist_key : nil , dist_name : nil , release_note : nil , disable_notify : nil , visibility : nil ) endpoint = "/api/users/#{owner}/apps" res = api . post endpoint do | request | request . body = { file : Faraday :: UploadIO . new ( file_path , 'octet/stream' ) , message : message , distribution_key : dist_key , distribution_name : dist_name , release_note : release_note , disable_notify : disable_notify , visibility : visibility } end Response . new ( res ) end
Upload an application binary file.
Upload an application binary file .
None
Deploygate::Client::Response
owner
User or organization name
User or organization name
file_path
Application binary file(ipa/apk)
Application binary file ( ipa / apk )
message
Description of the file
Description of the file
dist_key
Distribution page hash
Distribution page hash
dist_name
Distribution page name
Distribution page name
release_note
Message for distribution page
Message for distribution page
disable_notify
Email notification for push(only ios)
Email notification for push ( only ios )
visibility
None
see
None