This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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" | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var access_token = BCAPI.Helper.Site.getAccessToken() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://first-webapp-hello-world-125889-apps.worldsecuresystems.com/_System/Apps/first-webapp-hello-world/second_page.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://first-webapp-hello-world-125889-apps.worldsecuresystems.com/_System/Apps/first-webapp-hello-world/index.html#access_token=9b9ef65dbf96495484f9d169d49e96a27c61037945894fcaba28731db6aa4b74 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://first-app-hello-world-123123-apps.worldsecuresystems.com/_System/Apps/first-app-hello-world/index.html#access_token=12830812308120938120983092183 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://[app key here]-[site_ID here]-apps.worldsecuresystems.com/_System/Apps/[app key here]/index.html#access_token=[authentication token here] |