【发布时间】:2019-04-18 21:58:58
【问题描述】:
我有以下代码,但我不熟悉接口。我以前从未在 c# 中使用过 。
IResult<InstaUser> userSearch = await api.SearchHashtag()
图片: --This are the arguments information (image)--。 .
我的问题:我不知道该填什么。第一个参数是一个字符串(没问题),但是我不知道该填什么,也不知道怎么填在。
这样填写的示例会是什么样子?
(InstaSharper 没有提供足够的信息告诉我如何填写)
感谢您的宝贵时间!
-------InstaSharpe.cs
/// <summary>
/// Searches for specific hashtag by search query.
/// </summary>
/// <param name="query">Search query</param>
/// <param name="excludeList">Array of numerical hashtag IDs (ie "17841562498105353") to exclude from the response, allowing you to skip tags from a previous call to get more results</param>
/// <param name="rankToken">The rank token from the previous page's response</param>
/// <returns>List of hashtags</returns>
Task<IResult<InstaHashtagSearch>> SearchHashtag(string query, IEnumerable<long> excludeList = null, string rankToken = null);
【问题讨论】:
-
其他两个参数是可选的。只需传入字符串
-
@tkausl 但是我该如何填写呢?
-
@tkausl 它们不是可选的。如果我只填写字符串,它仍然被标记为红色
-
可能是因为您的变量
usersSearch的类型错误。 -
@tkausl 不,这应该没问题。第一个参数可以是字符串,第三个参数可以为空,但第二个参数不起作用。我添加了这个摘要。