{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Introduction","type":"basic","slug":"cloudapp-js-api","excerpt":"This API allows to launch applications hosted on rollApp Cloud Platform.","body":"This API allows launching applications hosted on rollApp Cloud Platform. It is primarily targeted at software developers and ISVs who want to make their applications available to the users directly in the browser.\n\nKey benefits of running apps in the cloud:\n\n* Users do not have to download, install or configure the application before use. The app is ready to use in one click\n* Application can be used on any device. Even if an application has to be run on Windows, when hosted in the cloud, a user with Chromebook can use it\n* In the cloud, an application can utilize more resources (RAM and CPU) than is available on user's computer\n\n## How does it work?\n\nrollApp's Cloud Apps API provides access to rollApp cloud application hosting platform. With this API you, as the developer of an application, retain full control over the interaction with the users before and after they used the application.\n\n* applications are executed in a white-label mode with rollApp branding removed\n* isolated from rollapp.com cloud service and does not require users to have an account with rollApp\n* all aspects of the relationship with the users and account management are under your full control\n\n## Using rollApp Cloud App API in JavaScript\n\nOn a page, where you want to let users open files, you simply do the following\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<script type=\\\"text/javascript\\\" src=\\\"https://api.rollapp.com/3/js/cloudapp.js\\\"></script>\\n<script type=\\\"text/javascript\\\">\\n    var key = \\\"SeCur3AP1K3y\\\";\\n    var rollAppCloud = new RollAppCloud(key);\\n</script>\",\n      \"language\": \"html\"\n    }\n  ]\n}\n[/block]\n And then all it takes to launch your application is \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"rollAppCloud.launch(\\\"localc\\\");\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","updates":["61162b457550fb0028699fd8","61162b6425d45f005b29c78f","62560a01cd8d07001383ebbc"],"order":0,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5ca0d9153101e900512259a6","project":"54523fec04160008005b1cc8","version":{"version":"3.0","version_clean":"3.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5ca0d9153101e9005122599a","5ca0d9153101e9005122599b","5ca0d9153101e9005122599c"],"_id":"5ca0d9153101e900512259aa","project":"54523fec04160008005b1cc8","__v":0,"forked_from":"57b557f0d3092517007cfac3","createdAt":"2016-08-18T06:38:40.018Z","releaseDate":"2016-08-18T06:38:40.018Z"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Cloud App JavaScript API","slug":"cloud-app-javascript-api","order":9999,"from_sync":false,"reference":false,"_id":"5ca0d9153101e9005122599c","project":"54523fec04160008005b1cc8","version":"5ca0d9153101e900512259aa","createdAt":"2017-09-22T09:26:20.780Z","__v":0},"user":"54523f0604160008005b1cc0","createdAt":"2017-09-22T09:26:42.511Z","githubsync":"","__v":3,"parentDoc":null}

Introduction

This API allows to launch applications hosted on rollApp Cloud Platform.

This API allows launching applications hosted on rollApp Cloud Platform. It is primarily targeted at software developers and ISVs who want to make their applications available to the users directly in the browser. Key benefits of running apps in the cloud: * Users do not have to download, install or configure the application before use. The app is ready to use in one click * Application can be used on any device. Even if an application has to be run on Windows, when hosted in the cloud, a user with Chromebook can use it * In the cloud, an application can utilize more resources (RAM and CPU) than is available on user's computer ## How does it work? rollApp's Cloud Apps API provides access to rollApp cloud application hosting platform. With this API you, as the developer of an application, retain full control over the interaction with the users before and after they used the application. * applications are executed in a white-label mode with rollApp branding removed * isolated from rollapp.com cloud service and does not require users to have an account with rollApp * all aspects of the relationship with the users and account management are under your full control ## Using rollApp Cloud App API in JavaScript On a page, where you want to let users open files, you simply do the following [block:code] { "codes": [ { "code": "<script type=\"text/javascript\" src=\"https://api.rollapp.com/3/js/cloudapp.js\"></script>\n<script type=\"text/javascript\">\n var key = \"SeCur3AP1K3y\";\n var rollAppCloud = new RollAppCloud(key);\n</script>", "language": "html" } ] } [/block] And then all it takes to launch your application is [block:code] { "codes": [ { "code": "rollAppCloud.launch(\"localc\");", "language": "javascript" } ] } [/block]