App42 PaaS - Cloud Platform Plugin

  • Authors : ShepHertz Technologies Pvt. Ltd.
5 votes
Dependency :
compile ":app-forty-two-paas:0.2"

Documentation

Summary

Develop engaging and connected Mobile, Web, Social, Enterprise and SaaS Apps usingShepHertz App42 PaaS Cloud and Backend as a Service Platform

Installation

Solution for Grails 2.0 users

grails install-plugin app-forty-two-paas

Alternative solution for Grails 1.3.3/1.3.7 users:

you need to add an extra plugin repository definition in BuildConfig.groovy

repositories {

grailsPlugins() grailsHome() grailsCentral()

grailsRepo "http://grails.org/plugins" // You have to add this line

}

Description

App42 PaaS and Backend as a Service (BaaS and MBaaS)

Develop engaging and connected Mobile, Web, Social, Enterprise and SaaS Apps using ShepHertz App42 PaaS Cloud and Backend as a Service Platform

Features

The app-forty-two-paas plug-in provides a REST based service with Native SDKs for Windows 7, J2ME, iOS, Android or HTML5 with all popular languages like Java, Groovy, PHP, Ruby, Grails and C#. There are around 18+ modules with over 300+ API's which will help developers to develop their applications; irrespective of the type or domain of the App they are developing. Technical as well as business services are provided by App42 Cloud API.

App42 Paas provides following api services:

UserApp42Service

App42 Cloud API's provides a complete User Management for any Mobile or Web App. Creates User for the App. It supports User registration, retrieval, state management e.g. lock, delete and Authentication. Along with User management the platform provides API's for persistent SessionManagement.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def userApp42Service

def index = { try{ def userObj = userApp42Service.createUser("USER_NAME", "PASSWORD", "EMAIL_ID") } catch(App42Exception e){ def appErrorCode = e.getAppErrorCode(); if(appErrorCode == 2001) { // Handle here for Bad Request (The request parameters are invalid. Username '<userName>' already exists.) } else if(appErrorCode == 2005) { // Handle here for Bad Request (The request parameters are invalid. User with emailId '<emailId>' already exists.) } else if(appErrorCode == 1401) { // handle here for Client is not authorized } else if(appErrorCode == 1500) { // handle here for Internal Server Error } } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/user_api.html

UploadApp42Service

Uploads file on the cloud. Allows access to the files through url. It is especially useful for Mobile/Device apps. It minimizes the App footprint on the device.
import com.shephertz.app42.paas.sdk.java.App42Exception               // In order to use App42Exception
import com.shephertz.app42.paas.sdk.java.upload.UploadFileType     // In order to use UploadFileType

class TestController {

def uploadApp42Service

def index = { try{ def uploadObj = uploadApp42Service.uploadFile("FILE_NAME", "FILE_PATH", UploadFileType.IMAGE , "FILE DESCRIPTION") if(uploadObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/fileupload_api.html

StorageApp42Service

Storage service on cloud provides the way to store the JSON document in NoSQL database running on cloud. One can store the JSON document, update it , serach it and can apply the map-reduce search on stored documents. Example : If one will store JSON doc {date it will be stored with unique Object Id and stored JSON object will loook like { "date" : "5Feb" , "_id" : { "$oid" : "4f423dcce1603b3f0bd560cf"}}. This oid can further be used to access/search the document.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def storageApp42Service

def index = { try{

def dbName = "DATABASE_NAME" def collectionName = "COLLECTION_NAME" def json = "{"name":"JSON_NAME"}" // example to create json

def storageObj = storageApp42Service.insertJSONDocument(dbName, collectionName, json); if(storageObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/storage_api.html

SocialApp42Service

This service provides the plugin facility to connect with popular social sites and provides value addition on top of them. Currently supported popular social sites are facebook, linkedin and twitter. The APIs provide methods to link users's facebook, linkedin and twitter access credentials with App user account. Users can update their wall status using these APIs. One API call can post the status message to all the social networking sites.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def socialApp42Service

def index = { try{

def userName = "FACEBOOK_USER_NAME"; def status = "STATUS_MESSAGE" def facebookAppId = "FB_APP_ID"; def facebookAppSecret = "FB_APP_SECRET"; def facebookAccessToken = "FB_ACCESS_TOKEN";

def socialObj = socialApp42Service.linkUserFacebookAccount(userName,facebookAccessToken, facebookAppId, facebookAppSecret) if(socialObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/social_api.html

SessionApp42Service

The SessionManager manages user sessions on the server side. It is a persistent SessionManager. It allows to save attributes in the session and retrieve them. This SessionManager is especially useful for Mobile/Device Apps which want to do session management

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def sessionApp42Service

def index = { try{

def userName = "USER_NAME";

def sessionObj = sessionApp42Service.getSession(userName) if(sessionObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } // do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/session_api.html

ReviewApp42Service

The service is a Review & Rating manager for any item. The item can be anything which has an id e.g. App on a AppStore/Marketplace, items in a catalogue, articles, blogs etc. It also provides methods to fetch average, highest etc. Reviews. Reviews can also be muted or unmuted if it has any objectionable content.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def reviewApp42Service

def index = { try{

def userID = "USER_ID" // user who has created the review def itemID = "ITEM_ID" // The item for which the review has to be created def reviewComment = "REVIEW_COMMENT" // The review comment def reviewRating = 4 // Review rating in double

def reviewObj = reviewApp42Service.createReview(userID, itemID, reviewComment, reviewRating); if(reviewObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/review_api.html

RecommenderApp42Service

Recommendation engine which provides reommendation based on customerId, itemId and the preference of the customer for a particular Item. Recommendations can be fetched based on User and Item Similarity i.e.Similarities based on on Users and Item. The Recommendation Engine currently supports two types of Similarity Algorithms i.e. EuclideanDistanceSimilarity and PearsonCorrelationSimilarity. By default when similarity is not specified PearsonCorrelationSimilarity is used e.g. in the method itemBased(String preferenceFileName, long userId, int howMany) it uses PearsonCorrelationSimilarity. In the method itemBasedBySimilarity(String similarity, String preferenceFileName, long userId, int howMany) one can specify which similarity algorithm has to be used e.g. Recommender.EUCLIDEAN_DISTANCE or Recommender.PEARSON_CORRELATION. Preference file can be loaded using the method loadPreferenceFile(String fileName, String preferenceFilePath, String description) in csv format. This preference file has to be uploaded once which can be a batch process The csv format for the file is given below. customerId, itemId, preference e.g. 1,101,5.0 1,102,3.0 1,103,2.5 2,101,2.0 2,102,2.5 2,103,5.0 2,104,2.0 3,101,2.5 3,104,4.0 3,105,4.5 3,107,5.0 4,101,5.0 4,103,3.0 4,104,4.5 4,106,4.0 5,101,4.0 5,102,3.0 5,103,2.0 5,104,4.0 5,105,3.5 5,106,4.0 The customerId and itemId can be any alphanumeric character(s) and preference values can be in any range. If app developers have used the Review Service,then Recommendation Engine can be used in conjunction with Review. In this case a CSV preference file need not to be uploaded. The customerId, itemId and preference will be taken from Review where customerId is mapped with userName, itemId is mapped with item Id and preference with rating. The methods for recommendations based on Reviews are part of the Review service. @see Review
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def reviewApp42Service

def index = { try{

def filePath = "FILE_PATH" // ile path

def loadPreferenceFileObj = recommenderApp42Service.loadPreferenceFile(filePath) if(loadPreferenceFileObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/recommendation_api.html

QueueApp42Service

If your App needs to send and receive asynchronous messages this service will help you to achieve that through few API calls. Complete Queue management - Create a Queue, remove, purge messages in a queue, find messages where pending. Send Messages to the queue and receive messages.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def queueApp42Service

def index = { try{

def queueName = "QUEUE_NAME" // queue name

def queueObj = queueApp42Service.createPullQueue(queueName, "QUEUE_DESCRIPTION") if(queueObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/message_api.html

LoggingApp42Service

Unified logging for your App. This service allows different levels e.g. info, debug, fatal, error etc. to log a message and then query the messages based on different parameters. You can fetch logs based on module, level, message, data range etc.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def loggingApp42Service

def index = { try{

def messgae = "INFO_MESSAGE" def module = "MODULE_NAME"

def logObj = loggingApp42Service.info(message, module) if(logObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/logging_api.html

ImageProcessorApp42Service

The ImageProcessor service is a Image utility service on the Cloud. Developers can upload files on the cloud and perform various Image Manipulation operations on the Uploaded Images e.g. resize, scale, thumbnail, crop etc. It is especially useful for Mobile Apps when they dont want to store Images locally and dont want to perform processor intensive operations. It is also useful for web applications who want to perform complex Image Operations
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def imageProcessorApp42Service

def index = { try{

def name = "IMAGE_NAME" def path = "IMAGE_PATH" def width = "IMAGE_WIDTH" // Integer value def height = "IMAGE_HEIGHT" // Integer value

def resizeObj = imageProcessorApp42Service.resize(name,path, width, height) if(resizeObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/imageprocessor_api.html

GeoApp42Service

Geo Spatial Service on cloud provides the storage , retrieval , querying and updation of geo data. One can store the geo data by unique handler on the cloud and can apply search , update and query on it. Geo spatial query includes finding nearby/In circle target point from given point using geo points stored on the cloud.
import com.shephertz.app42.paas.sdk.java.App42Exception
import com.shephertz.app42.paas.sdk.java.geo.GeoPoint
import com.shephertz.app42.paas.sdk.java.geo.Geo

class TestController {

def geoApp42Service

def index = { try{

ArrayList<GeoPoint> geoList = new ArrayList<GeoPoint>()

GeoPoint gp1 = new GeoPoint() gp.setMarker("MARKER_1") gp.setLat(new BigDecimal(-73.99171)) gp.setLng(new BigDecimal(40.738868))

GeoPoint gp2 = new GeoPoint() gp.setMarker("MARKER_2") gp.setLat(new BigDecimal(-73.997812)) gp.setLng(new BigDecimal(40.739128))

geoList.add(gp1) geoList.add(gp2)

def geoObj = geoApp42Service.createGeoPoints("GEO_STORAGE_NAME", geoList) if(geoObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/geospatial_api.html

ScoreBoardApp42Service

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def ScoreBoardApp42Service

def index = { try{

def gameName = "GAME_NAME" def description = "GAME_DESCRIPTION" def score = "SCORE" // Double value

def saveUserScoreObj = scoreBoardApp42Service.saveUserScore(gameName, description, score) if(saveUserScoreObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/gaming_api.html

ScoreApp42Service

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def scoreApp42Service

def index = { try{

def gameName = "GAME_NAME" def description = "GAME_DESCRIPTION" def score = "SCORE" // Double value

def addScoreObj = scoreApp42Service.addScore(gameName, description, 1000000) if(addScoreObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/gaming_api.html

RewardApp42Service

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def RewardApp42Service

def index = { try{

def rewardName = "REWARD_NAME" def description = "REWARD_DESCRIPTION"

def createRewardObj = rewardApp42Service.createReward(rewardName, description) if(createRewardObj .isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/gaming_api.html

GameApp42Service

The Game service allows Game, User, Score and ScoreBoard Management on the Cloud. The service allows Game Developer to create a Game and then do in Game Scoring using the Score service. It also allows to maintain a Scoreboard across game sessions using the ScoreBoard service. One can query for average or highest score for user for a Game and highest and average score across users for a Game. It also gives ranking of the user against other users for a particular game. The Reward and RewardPoints allows the Game Developer to assign rewards to a user and redeem the rewards. E.g. One can give Swords or Energy etc. The services Game, Score, ScoreBoard, Reward, RewardPoints can be used in Conjunction for complete Game Scoring and Reward Management.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def gameApp42Service

def index = { try{

def gameName = "GAME_NAME" def description = "GAME_DESCRIPTION"

def gameObj = gameApp42Service.createGame(gameName, description) if(gameObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/gaming_api.html

PhotoApp42Service

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def photoApp42Service

def index = { try{

def photoObj = photoApp42Service.addPhoto("USER_NAME", "ALBUM_NAME", "PHOTO_NAME", "PHOTO_DESCRIPTION", "PHOTO_PATH") if(photoObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/gallery_api.html

GalleryApp42Service

Create Photo Gallery on the cloud. This service allows to manage i.e. create, retrieve and remove albums on the cloud. Its useful for Mobile/Device App and Web App developer which want Photo Gallery functionality. It gives them a complete Photo Gallery out of the box and reduces the footprint on the device. Developers can focus on how the Photo Gallery will be rendered and this Cloud API will manage the Gallery on the cloud thereby reducing development. Adds Photo to the created Album on the Cloud.All photos for a given Album can be managed through this service. Photos can be uploaded to the cloud. Uploaded photos are accessible through the generated URL. The service also creates a thumbnail for the Photo which has been uploaded.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def galleryApp42Service

def index = { try{

def albumObj = galleryApp42Service.createAlbum("USER_NAME", "ALBUM_NAME", "ALBUM_DESCRIPTION") if(albumObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/gallery_api.html

EmailApp42Service

Service to send email in plain text or html. Multiple Email providers can be configured using AppHQ - App42 Management Console or throught the createMailConfiguration API. Can send mails to multiple recipients.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def emailApp42Service

def index = { try{ def host = "EMAIL_HOST" def port = "EMAIL_PORT" // Integer value def email = "EMAIL_ID" def password = "EMAIL_PASSWORD" Boolean isSSL = "IsSSL_VALUE" // either true or false

def emailObj = emailApp42Service.createMailConfiguration(host, port, email, password, isSSL) if(emailObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/email_api.html

CatalogueApp42Service

This Service provides a complete cloud based catalogue management. An app can keep all its items based on category on the Cloud. This service provides several utility methods to manage catalogue on the cloud. One can add items with its related information in a particular category. And there can be several categories in a catalogue. The App developer can create several catalogues if needed. The Cart service can be used along with Catalogue service to create an end to end Shopping feature for a Mobile and Web App
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def catalogueApp42Service

def index = { try{

def createCatalogueObj = catalogueApp42Service.createCatalogue("CATALOGUE_NAME", "CATALOGUE_DESCRIPTION") if(createCatalogueObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/catalogue_api.html

CartApp42Service

This is Cloud Persistent Shopping Cart Service. App Developers can use this to create a Shopping Cart. Add Items and Check Out items. It also maintains the transactions and the corresponding Payment Status. The Payment Gateway interface is not provided by the Platform. It is left to the App developer how he wants to Payment Integration. This can be used along with Catalogue or used independently aswell. This Service provides a complete cloud based catalogue management. An app can keep all its items based on category on the Cloud. This service provides several utility methods to manage catalogue on the cloud. One can add items with its related information in a particular category. And there can be several categories in a catalogue. The App developer can create several catalogues if needed. The Cart service can be used along with Catalogue service to create an end to end Shopping feature for a Mobile and Web App Item information which has to be added in a Category for a particular Catalogue. This is used along with a catalogue
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def cartApp42Service

def index = { try{

def createCartObj = cartApp42Service.createCart("USER_NAME"); if(createCartObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/shoppingcart_api.html

PushNotificationApp42Service

ShepHertz App42 platform is now equipped with Push notification APIs and is supported for various platforms. Most famous platforms available for push notifications are Android devices using GCM (Google Cloud Messaging), iOS devices using APNS (Apple Push Notification Service), Toast messages on WP7 (Windows Phone 7) using MPNS (Microsoft Push Notification Service). App42 Push Notification API can be used to send direct push messages to devices running on above stated platforms. It can also be used to send messages in Channel Subscription Model. It provides the API to create channel, subscribe to channel and unsubscribe to channel. Once channel is created and subscribed by users, it can be used for sending the message over the channel. App42 Push Notification API is easy to use and integrate. It requires absolutely no back-end coding.
import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def pushNotificationApp42Service try{ def userName = "Nick" def deviceToken = "Device_Token"

def pushObj = pushNotificationApp42Service.storeDeviceToken(userName, deviceToken, DeviceType.ANDROID); if(pushObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/pushnotification_api.html

SchemeDataApp42Service

With AppTab’s scheme and package service, you can create various payment schemes and offer different packages that may include various combinations of features, API calls and storage. App users can avail any of the offered packages for the pricing and billing options.

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def schemeApp42Service

def index = { try{ def schemeName = "Scheme_Name" def description = "Created_Scheme"

def createSchemeObj = schemeApp42Service.createScheme(schemeName, description); if(createSchemeObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/apptab_api.html

SubscribeApp42Service

You can allow your App users to opt for any defined packages and schemes. For the same, App users can subscribe for a specific package and the same subscribed plan will be applicable for that user to generate the bills.

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def subscribeApp42Service

def index = { try{ def schemeName = "Scheme_Name" def packageName = "Package_Name" def userName = "User_Name"

def subscribeObj = subscribeApp42Service.subscribe(schemeName, packageName, username); if(subscribeObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/apptab_api.html

ChargeApp42Service

Metering service in AppTab allows you to define the payment charges for individual features, API calls and storage used. Based on the usage of storage features and API calls, bills would be generated for subscribed App users.

import com.shephertz.app42.paas.sdk.java.App42Exception
import com.shephertz.app42.paas.sdk.java.appTab.ChargeType

class TestController {

def chargeApp42Service

def index = { try{ def schemeName = "Scheme_Name" def packageName = "Package_Name" def userName = "User_Name" def space = new BigDecimal(100)

def chargeObj = chargeApp42Service.chargePackage(schemeName,packageName,userName,space,ChargeType.ADD); if(chargeObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/apptab_api.html]

BillApp42Service

Billing service auto-generates the payment bills for subscribed users based on usage of storage, features and API calls. These bills can be generated month wise.

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def billApp42Service

def index = { try{ def schemeName = "Scheme_Name" def packageName = "Package_Name" def userName = "User_Name" def year = 2012

def billObj = billApp42Service.getAllUsageByMonth(schemeName, packageName, username, BillMonth.DECEMBER, year); if(billObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/apptab_api.html

DiscountApp42Service

AppTab allows you to define various discount offers for your App users. You can specify the start and end date of such discounts, the percentage of discount and the other details of discount such as name, description and components based on which the discount is offered. For instance, there may be a promotional discount that can be availed by App users on entering the promo codes.

import com.shephertz.app42.paas.sdk.java.App42Exception

class TestController {

def discountApp42Service

def index = { try{ def schemeName = "Scheme_Name" def packageName = "Package_Name" def userName = "User_Name" def year = 2012 DiscountData.Discount discount = new DiscountData().new Discount() discount.setPercentage(new BigDecimal(10)) discount.setStartDate(new Date(new Date().getTime())) discount.setUsage(new BigDecimal(1000)) discount.setEndDate(new Date(new Date().getTime() + 3600 * 3600 * 1000))

def discountObj = discountApp42Service.createDiscount(discountName, DiscountType.STORAGETYPE, discount, description); if(discountObj.isResponseSuccess() == true){

// do something } } catch(App42Exception e){

// do something } } }

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/apptab_api.html

Configuration

Inside App42Config provide your apiKey and secretKey (which one can get by registering on http://apphq.shephertz.com)

app42 {
    app {
        apiKey = "API_KEY"
        secretKey = "SECRET_KEY"
    }
}

Usage

  • You have to install this plugin:
grails install-plugin app-forty-two-paas
  • In order to use api one just have to include the service in the controller
def userApp42Service
  • Now you can use all the methods of user api
def user = userApp42Service.createUser("nick","password","nick@shephertz.com")

For further documentation click here http://api.shephertz.com/cloudapidocs/guide/0.8.3/java/user_api.html