Exemplo n.º 1
0
        public async Task get_followers()
        {
            var args = new GetFollowersArgs
            {
                Account = User.Login,
                Limit   = 3,
                Start   = string.Empty,
                Type    = FollowType.Blog
            };
            var resp = await Api.GetFollowersAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Exemplo n.º 2
0
        public void get_followers()
        {
            var args = new GetFollowersArgs()
            {
                Account = User.Login,
                Limit   = 3,
                Start   = string.Empty,
                Type    = FollowType.Blog
            };
            var resp = Api.GetFollowers(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.FollowApi, "get_followers", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
 /// <summary>
 /// API name: get_followers
 ///
 /// </summary>
 /// <param name="args">API type: get_followers_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: get_followers_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public JsonRpcResponse <GetFollowersReturn> GetFollowers(GetFollowersArgs args, CancellationToken token)
 {
     return(CustomGetRequest <GetFollowersReturn>(KnownApiNames.FollowApi, "get_followers", args, token));
 }