public async Task get_trending_tags() { var args = new GetTrendingTagsArgs(); var resp = await Api.GetTrendingTagsAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public async Task get_trending_tags() { var args = new GetTrendingTagsArgs { StartTag = string.Empty, Limit = 1 }; var resp = await Api.CondenserGetTrendingTags(args, CancellationToken.None); TestPropetries(resp); }
public void get_trending_tags() { var args = new GetTrendingTagsArgs(); var resp = Api.GetTrendingTags(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.TagsApi, "get_trending_tags", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
// "condenser_api.get_trending_tags", public Task <JsonRpcResponse <GetTrendingTagsReturn> > CondenserGetTrendingTagsAsync(GetTrendingTagsArgs args, CancellationToken token) { return(CondenserCustomGetRequestAsync <GetTrendingTagsReturn>(KnownApiNames.CondenserApi, "get_trending_tags", args, token)); }
/// <summary> /// API name: get_trending_tags /// /// </summary> /// <param name="args">API type: get_trending_tags_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: get_trending_tags_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetTrendingTagsReturn> > GetTrendingTags(GetTrendingTagsArgs args, CancellationToken token) { return(CustomGetRequest <GetTrendingTagsReturn>(KnownApiNames.TagsApi, "get_trending_tags", args, token)); }