Skip to content

Instantly share code, notes, and snippets.

{
"menu-first_webapp_hello_world": {
"weight": 100000,
"title": "Hello World",
"children": [],
"attr": {
"href": "/Admin/AppLoader.aspx?client_id=first-webapp-hello-world"
}
}
}
@dgundi
dgundi / index.html
Created November 6, 2013 00:39
Hello World custom app landing page
<!DOCTYPE html>
<html>
<head>
<title>Hello world</title>
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.1/underscore-min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
<script type="text/javascript" src="//cdn.worldsecuresystems.com/bcapi/bcapi-0.0.1.min.js"></script>
@dgundi
dgundi / call.html
Created November 6, 2013 00:40
Hello World custom app js call page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello world second page</title>
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="//cdn.worldsecuresystems.com/bcapi/bcapi-0.0.1.min.js"></script>
</head>
<body>
@dgundi
dgundi / menu.json
Created November 6, 2013 00:52
OpenAdmin launching app file
{
"first-app-hello-world": {
"weight": 100000,
"title": "Hello World",
"children": [],
"attr": {
"href": "/Admin/AppLoader.aspx?client_id=first-app-hello-world"
}
}
}
@dgundi
dgundi / menu.json
Created November 6, 2013 02:06
json href example
"href" : "/Admin/AppLoader.aspx?client_id=first-app-hello-world"
@dgundi
dgundi / href
Created November 6, 2013 04:45
https://[app key here]-[site_ID here]-apps.worldsecuresystems.com/_System/Apps/[app key here]/index.html#access_token=[authentication token here]
@dgundi
dgundi / href
Created November 6, 2013 04:48
https://first-app-hello-world-123123-apps.worldsecuresystems.com/_System/Apps/first-app-hello-world/index.html#access_token=12830812308120938120983092183
https://first-webapp-hello-world-125889-apps.worldsecuresystems.com/_System/Apps/first-webapp-hello-world/index.html#access_token=9b9ef65dbf96495484f9d169d49e96a27c61037945894fcaba28731db6aa4b74
https://first-webapp-hello-world-125889-apps.worldsecuresystems.com/_System/Apps/first-webapp-hello-world/second_page.html
var access_token = BCAPI.Helper.Site.getAccessToken()