API Call | Success Response |
SDP.init().then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "meta": { "module": "header", "instance": { "appid": "709641411", "appname": "widgetdev", "appdisplayname": "Widget Development" }, "personalization": { "time_zone": "Asia/Kolkata", "time_format": "MMM d, yyyy hh:mm a", "date_format": "MMM d, yyyy" }, "userLanguage": "en", "userLocale": "en_US", "userType": "Technician", "userId": "120747000000232217", "userName": "Widget Development", "userEmail": "widget_dev@sdpdev.onmicrosoft.com", "isSDAdmin": true, "widget": { "id": "120747000002587069", "name": Custom Widget", "description": "", "custom_widget": { "id": "120747000002587067" } } }, "uniqueID": "78d261d9-65f7-48bc-b10d-84b7e79b1285", "location": "webtab" } |
Name | Type | Description | |||||||||||||||||||||||||||
options* | Object | Object which contains API details.
|
API Call | Success Response | Failure Response |
SDP.invokeUrl({ “url”: “https://api.twitter.com/1.1/statuses/update.json”, “method”: “post”, “params”: { “status”: "SDP and twitter integrated" }, “connectionLinkName”: “twitter” }).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | //Based on 3rd party API | //Based on 3rd party API |