protected void Page_Load(object sender, EventArgs e) { string ret = null; CCPRestSDK.CCPRestSDK api = new CCPRestSDK.CCPRestSDK(); //ip格式如下,不带https:// bool isInit = api.init("sandboxapp.cloopen.com", "8883"); api.setAccount(主帐号, 主帐号令牌); api.setAppId(应用ID); try { if (isInit) { Dictionary<string, object> retData = api.GetSubAccounts(0, 100); ret = getDictionaryData(retData); } else { ret = "初始化失败"; } } catch (Exception exc) { ret = exc.Message; } finally { Response.Write(ret); } }