Beispiel #1
0
 /// <summary>
 /// 获取指定成员的所有直播ID
 /// </summary>
 /// <param name="accessTokenOrAppKey"></param>
 /// <param name="data"></param>
 /// <param name="timeOut"></param>
 /// <returns></returns>
 public static async Task <GetUserLivingResponse> GetUserAllLivingidAsync(string accessTokenOrAppKey, GetUserLivingRequest data, int timeOut = Config.TIME_OUT)
 {
     return(await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
     {
         var url = string.Format(Config.ApiWorkHost + "/cgi-bin/living/get_user_all_livingid?access_token={0}", accessToken);
         return await CommonJsonSend.SendAsync <GetUserLivingResponse>(null, url, data, CommonJsonSendType.POST, timeOut).ConfigureAwait(false);
     }, accessTokenOrAppKey).ConfigureAwait(false));
 }
Beispiel #2
0
 /// <summary>
 /// 获取指定成员的所有直播ID
 /// </summary>
 /// <param name="accessTokenOrAppKey"></param>
 /// <param name="data"></param>
 /// <param name="timeOut"></param>
 /// <returns></returns>
 public static GetUserLivingResponse GetUserAllLivingid(string accessTokenOrAppKey, GetUserLivingRequest data, int timeOut = Config.TIME_OUT)
 {
     return(ApiHandlerWapper.TryCommonApi(accessToken =>
     {
         var url = string.Format(Config.ApiWorkHost + "/cgi-bin/living/get_user_all_livingid?access_token={0}", accessToken);
         return CommonJsonSend.Send <GetUserLivingResponse>(null, url, data, CommonJsonSendType.POST, timeOut);
     }, accessTokenOrAppKey));
 }