Extension Manager:API Rewrite:API: Difference between revisions

Jump to navigation Jump to search
Line 5: Line 5:
==getInstallForURL==
==getInstallForURL==


Creates a new object representing an add-on installation from a url.
Creates a new object representing an add-on installation from a url. This may perform a request to the URL to determine the type of add-on before passing an [[#AddonInstall|AddonInstall]] onto the provided callback.
 
'''TODO''' This probably needs to be asynchronous to look up the mimetype of the url to determine the add-on type and maybe the signing certificate. Also move name and version arguments into a generic parameters object.


;url :The URL to install the add-on from
;callback :A function to pass an [[#AddonInstall|AddonInstall]] to when created
;hash :A hash of the file to be downloaded (optional)
;name :A human readable name for the add-on to be displayed during install (optional)
;name :A human readable name for the add-on to be displayed during install (optional)
;version :The version of the add-on to be installed (optional)
;version :The version of the add-on to be installed (optional)
;url :The URL to install the add-on from
;hash :A hash of the file to be downloaded
;returns :An [[#AddonInstall|AddonInstall]] for the installation


==getInstallForFile==
==getInstallForFile==
canmove, Confirmed users
1,570

edits

Navigation menu