{"_id":"59c4d7525237e3003c4532c4","project":"54523fec04160008005b1cc8","version":{"_id":"57b557f0d3092517007cfac3","project":"54523fec04160008005b1cc8","__v":2,"createdAt":"2016-08-18T06:38:40.018Z","releaseDate":"2016-08-18T06:38:40.018Z","categories":["57b557f0d3092517007cfac4","57b557f0d3092517007cfac5","59c4d73c5237e3003c4532c3"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"59c4d73c5237e3003c4532c3","project":"54523fec04160008005b1cc8","version":"57b557f0d3092517007cfac3","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-09-22T09:26:20.780Z","from_sync":false,"order":9999,"slug":"cloud-app-javascript-api","title":"Cloud App JavaScript API"},"user":"54523f0604160008005b1cc0","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-09-22T09:26:42.511Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"# 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/2/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]","excerpt":"This API allows to launch applications hosted on rollApp Cloud Platform.","slug":"cloudapp-js-api","type":"basic","title":"Introduction"}

Introduction

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

# 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/2/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]