Adding Backend to BlackBerry 10 webworks with App42 Platform

BlackBerry 10 Adding Backend to BlackBerry 10 webworks with App42 Platform

BlackBerry 10

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
  • 1
    
    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
  • 1
    
     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
  • 1
    
      var user  = new App42User();
  • - Now one can call associated method of that service e.g. user creation can be done with the following snippet
  • 1
    2
    3
    4
    5
    6
    
     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.

Download the SDK and sample code from our BlackBerry 10 webwork repository to get started.

twitter Adding Backend to BlackBerry 10 webworks with App42 Platformfacebook Adding Backend to BlackBerry 10 webworks with App42 Platformgoogle Adding Backend to BlackBerry 10 webworks with App42 Platformlinkedin Adding Backend to BlackBerry 10 webworks with App42 Platformpinterest Adding Backend to BlackBerry 10 webworks with App42 Platformreddit Adding Backend to BlackBerry 10 webworks with App42 Platformstumbleupon Adding Backend to BlackBerry 10 webworks with App42 Platformtumblr Adding Backend to BlackBerry 10 webworks with App42 Platform

Leave a Reply

Your email address will not be published. Required fields are marked *


4 + = eight

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>