Example #1
0
        public async Task get_blog()
        {
            var args = new GetBlogArgs
            {
                Account      = User.Login,
                StartEntryId = 0,
                Limit        = 10
            };
            var resp = await Api.GetBlogAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Example #2
0
        public void get_blog()
        {
            var args = new GetBlogArgs()
            {
                Account      = User.Login,
                StartEntryId = 0,
                Limit        = 10,
            };
            var resp = Api.GetBlog(args, CancellationToken.None);

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

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

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