public async Task get_discussions_by_author_before_date() { var args = new GetDiscussionsByAuthorBeforeDateArgs { Author = "steepshot", StartPermlink = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot", BeforeDate = DateTime.Today, Limit = 3 }; var resp = await Api.GetDiscussionsByAuthorBeforeDateAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void get_discussions_by_author_before_date() { var args = new GetDiscussionsByAuthorBeforeDateArgs() { Author = "steepshot", StartPermlink = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot", BeforeDate = DateTime.Today, Limit = 3 }; var resp = Api.GetDiscussionsByAuthorBeforeDate(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.TagsApi, "get_discussions_by_author_before_date", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_discussions_by_author_before_date /// /// </summary> /// <param name="args">API type: get_discussions_by_author_before_date_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: get_discussions_by_author_before_date_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetDiscussionsByAuthorBeforeDateReturn> > GetDiscussionsByAuthorBeforeDate(GetDiscussionsByAuthorBeforeDateArgs args, CancellationToken token) { return(CustomGetRequest <GetDiscussionsByAuthorBeforeDateReturn>(KnownApiNames.TagsApi, "get_discussions_by_author_before_date", args, token)); }