Upload and manage your assets in the iTunes Store using the iTunes Store's Transporter (iTMSTransporter).
Arguments
- options (Hash)
-
Transporter options
Options
Options given here will be used as defaults for all subsequent method calls. Thus you can set method specific options here but, if you call a method that does not accept one of these options, an OptionError will be raised.
See specific methods for a list of options.
- :username (String)
-
Your username
- :password (String)
-
Your password
- :shortname (String)
-
Your shortname. Optional, not every iTunes account has one
- :path (String)
-
The path to the
iTMSTransporter. Optional. - :print_stdout (Boolean)
-
Print
iTMSTransporter's stdout to your stdout. Defaults tofalse. - :print_stderr (Boolean)
-
Print
iTMSTransporter's stderr to your stderr. Defaults tofalse.
Source: show
# File lib/itunes/store/transporter/itms_transporter.rb, line 27 def initialize(options = nil) @defaults = create_options(options) @config = { :path => @defaults.delete(:path), :print_stdout => @defaults.delete(:print_stdout), :print_stderr => @defaults.delete(:print_stderr), } end
Retrieve the metadata for a previously delivered package.
Arguments
- options (Hash)
-
Transporter options
Options
You must use either the :apple_id or :vendor_id
option to identify the package
Errors
TransporterError, OptionError, ExecutionError
Returns
- String
-
The metadata
Source: show
# File lib/itunes/store/transporter/itms_transporter.rb, line 59
List of Providers for whom your account is authorzed to deliver for.
Arguments
- options (Hash)
-
Transporter options
Errors
TransporterError, OptionError, ExecutionError
Returns
- Array
-
Each element is a
Hashwith two keys::shortnameand:longnamerepresenting the given provider's long and short names
Source: show
# File lib/itunes/store/transporter/itms_transporter.rb, line 78
Download a RelaxNG schema file for a particular metadata specification.
Arguments
- options (Hash)
-
Transporter options
Options
- :type (String)
-
transitional or strict
- :version (String)
-
The schema version you'd like to download. This is typically in the form of
schemaVERSION. E.g.,film4.8
Errors
TransporterError, OptionError, ExecutionError
Returns
- String
-
The schema
Source: show
# File lib/itunes/store/transporter/itms_transporter.rb, line 102
Retrieve the status of a previously uploaded package.
Arguments
- options (Hash)
-
Transporter options
Options
- :vendor_id (String)
-
ID of the package you want status info on
Errors
TransporterError, OptionError, ExecutionError
Returns
- Hash
-
Descibes various facets of the package's status.
Source: show
# File lib/itunes/store/transporter/itms_transporter.rb, line 125
Upload a package to the iTunes Store.
Arguments
- package (String)
-
The path to the package directory to upload. Package names must end in
.itmsp. - options (Hash)
-
Transporter options
Options
- :transport (String)
-
The method/protocol used to upload your package. Optional. Can be one of:
"Aspera","Signiant", or"DEV". By defaultiTMSTransporterautomatically selects the transport. - :rate (Integer)
-
Target bitrate in Kbps. Optional, only used with
AsperaandSigniant - :success (String)
-
A directory to move the package to if the upload succeeds
- :failure (String)
-
A directory to move the package to if the upload fails
- :delete (Boolean)
-
Delete the package if the upload succeeds. Defaults to
false. - :log_history (String)
-
Write an
iTMSTransporterlog to this directory. Off by default. - :streams (Integer)
-
Number of data streams to use. Optional, only used with
Signiant - :batch (Boolean)
-
Allow batch uploads if
packageis a regular directory. Optional, defaults tofalsebut will default totrueinv0.3.0.
Errors
TransporterError, OptionError, ExecutionError
Returns
true if the upload was successful.
Source: show
# File lib/itunes/store/transporter/itms_transporter.rb, line 156
Validate the contents of a package's metadata and assets.
If verification fails an ExecutionError containing the errors will be raised. Each error message is an instance of TransporterMessage.
Arguments
- package (String)
-
The path to the package directory to verify. Package names must end in
.itmsp. - options (Hash)
-
Verify options
Options
- :batch (Boolean)
-
Allow batch verification if
packageis a regular directory. Optional, defaults tofalsebut will default totrueinv0.3.0. - :verify_assets (Boolean)
-
If false the assets will not be verified. Defaults to
true.
Errors
TransporterError, OptionError, ExecutionError
Returns
true if the package was verified.
Source: show
# File lib/itunes/store/transporter/itms_transporter.rb, line 184