public async Task get_post_discussions_by_payout() { var args = new GetPostDiscussionsByPayoutArgs(); var resp = await Api.GetPostDiscussionsByPayoutAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void get_post_discussions_by_payout() { var args = new GetPostDiscussionsByPayoutArgs(); var resp = Api.GetPostDiscussionsByPayout(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.TagsApi, "get_post_discussions_by_payout", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_post_discussions_by_payout /// /// </summary> /// <param name="args">API type: get_post_discussions_by_payout_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: get_post_discussions_by_payout_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetPostDiscussionsByPayoutReturn> > GetPostDiscussionsByPayout(GetPostDiscussionsByPayoutArgs args, CancellationToken token) { return(CustomGetRequest <GetPostDiscussionsByPayoutReturn>(KnownApiNames.TagsApi, "get_post_discussions_by_payout", args, token)); }