createandbuildapplication

This command will create a new application

http://webservices.html5tools-software.intel.com/build.aspx?cmd=createandbuildapplication&partnercode=[a valid partner code]&customerid=[the user's customerid]&platform=[platform]&codebase=[]&target=[]&apptitle=[]&islandscape=[]&pushprojid=[]&pushapikey=[]&p12Pass=[]&pushp12pass=[]&usecamera=[]&uselocation=[]&useaudioplayback=[]&useaudiorecording=[]&usecontacts=[]{POSTDATA} 

Description:

The createandbuildapplication function will create/update and package an application. If the application does not exist, it will be created. If the application exists, only those items that need to be updated have to be supplied with the request.

Parameters:

  • partnercode: In order to use this web service, request a valid partner code from html5tools@intel.com.
  • customerid: In order to use this web service, request your Customer ID from html5tools@intel.com.
  • platform: The platform the application should target. Valid values are "ios", "android", "amazon", or "nook".
  • codebase: The codebase to build the application with. Valid values are "gold", "lean", and "leandc". The "gold" codebase includes all functionality from the appMobi JavaScript API, while the "lean" codebase includes a minimal set of API commands. The "leandc" codebase is a minimal build but includes the Accelerated Canvas App Game Interface API commands.
  • target: This parameter is only required for an iOS application and would hold information on how the application is provisioned for distribution. Valid values are "Android", "Adhoc", or "Distribution".
  • device: The device or devices that the application should be built for. It is only required for an iOS application. It should always be either "iPhone", "iPad", or "iPhone/iPad".
  • os: The operating system version to build for. Valid values are "4.2" for Android, and "4.3" for iOS.
  • appname: The unique name to build the application under
  • apptitle: This optional parameter sets the name of the application as it will appear on the device.
  • islandscape: This parameter is used to indicate whether the app should be built to start in portrait or landscape mode. Set this parameter to "1" for landscape mode, or 0 for portrait.
  • pushprojid: For Android builds, this parameter should hold the Google project id used for GCM push messaging
  • pushapikey: For Android builds, this parameter should hold the Google API key used for GCM push messaging
  • p12Pass : The password for the iOS distribution certificate p12 file (if provided)
  • The password for the iOS distribution certificate p12 file (if provided):
  • usecamera: This optional Android-only parameter is used to indicate whether the app should be built with permissions to use the camera or not. In order for an app to acceess the device's camera, it should be set to "1". Otherwise, set this value to the default of "0".
  • uselocation: This optional Android-only parameter is used to indicate whether the app should be built with permissions to use the location services or not. In order for an app to acceess the device's location services, it should be set to "1". Otherwise, set this value to the default of "0".
  • useaudioplayback: This optional Android-only parameter is used to indicate whether the app should be built with permissions to use the audio playback system or not. In order for an app to acceess the device's audio playback system , it should be set to "1". Otherwise, set this value to the default of "0".
  • useaudiorecording: This optional Android-only parameter is used to indicate whether the app should be built with permissions to use the audio recording services or not. In order for an app to acceess the device's audio recording services, it should be set to "1". Otherwise, set this value to the default of "0".
  • usecontacts: This optional Android-only parameter is used to indicate whether the app should be built with permissions to use the contact database or not. In order for an app to acceess the device's contact database, it should be set to "1". Otherwise, set this value to the default of "0".
  • {postdata}: may contain
       
  • Application icons and splash screens. All images must have the .PNG or .JPG extensions.
  • An iOS provisioning profile for this application.
  • The application contents contained in a zip file. The file must have the .ZIP extension.
  • iOS Distribution certificate and private key for the account. If a certificate and private key are provided separately, the certificate must end with the extension ".cer" and the private key must end in ".key". If an exported P12 file is supplied, the password for the private key must be provided in the p12pass parameter. NOTE: An iOS distribtuion certificate/private key are used for the account. The certificate only needs to be supplied when creating or updating the certificate for the account.
  • iOS Push certificate and private key for the account. If the push certificate is provided, the certificate must end with the extension ".cer" and have the word "push" in the file name. The private key must end with the extension ".key" and have the word "push" in the file name. If a P12 file is supplied, the password for the private key must be provided in the PushP12Pass parameter.
  • Plugin extensions for the applications. Plugins must end in the ".zip" extension and contain the minimum file necessary for the platform.