Example #1
0
        public static async Task <bool> ActivateSuiteAsync(string accessToken, CommonIsvRequest isvRequestData)
        {
            var result = await CommonApi.AccessDingtalkServerAsync <ErrorResponse>(
                "https://oapi.dingtalk.com/service/activate_suite?suite_access_token=" + accessToken, isvRequestData);

            return(result.errcode == 0);
        }
Example #2
0
 public static async Task <GetCorpTokenResponse> GetCorpTokenAsync(string accessToken, CommonIsvRequest isvRequestData)
 {
     return(await CommonApi.AccessDingtalkServerAsync <GetCorpTokenResponse>(
                "https://oapi.dingtalk.com/service/get_corp_token?suite_access_token=" + accessToken, isvRequestData));
 }