public async Task get_follow_count() { var args = new GetFollowCountArgs { Account = User.Login }; var resp = await Api.GetFollowCountAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void get_follow_count() { var args = new GetFollowCountArgs() { Account = User.Login }; var resp = Api.GetFollowCount(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.FollowApi, "get_follow_count", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_follow_count /// /// </summary> /// <param name="args">API type: get_follow_count_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: get_follow_count_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public JsonRpcResponse <GetFollowCountReturn> GetFollowCount(GetFollowCountArgs args, CancellationToken token) { return(CustomGetRequest <GetFollowCountReturn>(KnownApiNames.FollowApi, "get_follow_count", args, token)); }