uploadipa

package module
v0.0.0-...-92e1a28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2021 License: GPL-2.0 Imports: 18 Imported by: 0

README

ipaupload

Upload iOS apps to App Store Connect with GoLang

Our code is based on the codes ios-uploader , a Node.js implementaion for uploading iOS apps to App Store Connect.

Note

  • The appPWD is not the password for login, it is generated for uploade the specific app in you account.

Simple Usage

import github.com/TommeyChang/go-pkg/uploadipa
result, response, err := uploadipa.RunUpload(user, appPWD, filePath)

NOTE:

  • The upload is successful only when the result is true. Otherwise failed.
  • Most of the responses were given by the Apple server.
  • The Apple AppStore supports block transfer. We set the default number of blocks is 4.
  • The retry times is 3.

Step by step usage

import github.com/TommeyChang/go-pkg/uploadipa

# You can set debug mode to print the details
uploadipa.SetDebuggerMode(True)

proc, err := uploadipa.NewUploader(userName, appPWD, filePath)
if err != nil {
  return false, "file error", err
}

proc.SetBlockNum = 4
proc.SetRetryTimes = 5

tickets, err := proc.GetUploadTickets()
if err != nil {
  return false, err.Error(), err
}

resutl, response, err := proc.UploadWithTickets(tickets)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUploader

func NewUploader(userName, appPWD, filePath string) (*process, error)

func RunUpload

func RunUpload(userName, appPWD, filePath string) (result bool, response string, err error)

func SetDebugMode

func SetDebugMode(debugMode bool)

func ValidateAccount

func ValidateAccount(account, appPWD string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL