isdata-customer-sdk 0.1.46 → 0.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -29539,6 +29539,7 @@ __webpack_require__.d(__webpack_exports__, {
29539
29539
  getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
29540
29540
  getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
29541
29541
  getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
29542
+ getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
29542
29543
  getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
29543
29544
  getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
29544
29545
  getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
@@ -29723,6 +29724,11 @@ let prefixPath = window.prefixPath || "";
29723
29724
 
29724
29725
 
29725
29726
 
29727
+ const getPortalAccessToken = async (appKey, appSecret) => {
29728
+ let result = await request.get(`/sdata/rest/appAuth/getAccessToken?appKey=${appKey}&appSecret=${appSecret}`);
29729
+ console.log("getPortalAccessToken", result);
29730
+ return result;
29731
+ };
29726
29732
  /**
29727
29733
  * 获取门户应用ID
29728
29734
  * @param {*} isPortalAction 是否是门户操作