public async Task get_blog_entries() { var args = new GetBlogEntriesArgs { Account = User.Login, StartEntryId = 0, Limit = 10 }; var resp = await Api.GetBlogEntriesAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void get_blog_entries() { var args = new GetBlogEntriesArgs() { Account = User.Login, StartEntryId = 0, Limit = 10, }; var resp = Api.GetBlogEntries(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.FollowApi, "get_blog_entries", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_blog_entries /// /// </summary> /// <param name="args">API type: get_blog_entries_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_entries_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public JsonRpcResponse <GetBlogEntriesReturn> GetBlogEntries(GetBlogEntriesArgs args, CancellationToken token) { return(CustomGetRequest <GetBlogEntriesReturn>(KnownApiNames.FollowApi, "get_blog_entries", args, token)); }