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.js CHANGED
@@ -29529,6 +29529,7 @@ __webpack_require__.d(__webpack_exports__, {
29529
29529
  getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
29530
29530
  getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
29531
29531
  getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
29532
+ getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
29532
29533
  getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
29533
29534
  getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
29534
29535
  getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
@@ -29713,6 +29714,11 @@ let prefixPath = window.prefixPath || "";
29713
29714
 
29714
29715
 
29715
29716
 
29717
+ const getPortalAccessToken = async (appKey, appSecret) => {
29718
+ let result = await request.get(`/sdata/rest/appAuth/getAccessToken?appKey=${appKey}&appSecret=${appSecret}`);
29719
+ console.log("getPortalAccessToken", result);
29720
+ return result;
29721
+ };
29716
29722
  /**
29717
29723
  * 获取门户应用ID
29718
29724
  * @param {*} isPortalAction 是否是门户操作