Skip to content

Instantly share code, notes, and snippets.

// Perform the AJAX request (make sure you've set the access token
var request = $.ajax({
url: "/api/v2/admin/sites/current/webapps/MyWebApp/items",
type: "POST",
headers: {
"Authorization": access_token
},
contentType: "application/json",
data: '{ "name": "MyWebAppItem" }'
}); // Request successful, response is in "msg" variable
// Perform the AJAX request (make sure you've set the access token
var request = $.ajax({
url: "/api/v2/admin/sites/current/webapps",
type: "POST",
headers: {
"Authorization": access_token
},
contentType: "application/json",
data: '{"name": "MyWebApp"}'
}); // Request successful, response is in "msg" variable
// Perform the AJAX request (make sure you've set the access token
var request =
$.ajax({
url: "/api/v2/admin/sites/current/webapps",
type: "GET",
headers: {
"Authorization": access_token
},
contentType: "application/json"
});
var access_token = BCAPI.Helper.Site.getAccessToken()
https://first-webapp-hello-world-125889-apps.worldsecuresystems.com/_System/Apps/first-webapp-hello-world/second_page.html
https://first-webapp-hello-world-125889-apps.worldsecuresystems.com/_System/Apps/first-webapp-hello-world/index.html#access_token=9b9ef65dbf96495484f9d169d49e96a27c61037945894fcaba28731db6aa4b74
@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
@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 / menu.json
Created November 6, 2013 02:06
json href example
"href" : "/Admin/AppLoader.aspx?client_id=first-app-hello-world"
@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"
}
}
}