C# InstaSharper argument delivery
I have following code, but I am not common with interfaces. I never worked with <> in c# before.
IResult<InstaUser> userSearch = await api.SearchHashtag()
Image: --This are the arguments information (image)--.
.
My problem: I don't know what to fill in. First argument is a string (no problem), but then I don't know what to fill in, and how to fill it in.
How would an example of this filled out look like?
(InstaSharper doesn't provide egnough information for me how to fill this out)
Thank you for your time!
-------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);
c# .net arguments
|
show 1 more comment
I have following code, but I am not common with interfaces. I never worked with <> in c# before.
IResult<InstaUser> userSearch = await api.SearchHashtag()
Image: --This are the arguments information (image)--.
.
My problem: I don't know what to fill in. First argument is a string (no problem), but then I don't know what to fill in, and how to fill it in.
How would an example of this filled out look like?
(InstaSharper doesn't provide egnough information for me how to fill this out)
Thank you for your time!
-------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);
c# .net arguments
The other two arguments are optional. Just pass in the string
– tkausl
Nov 15 '18 at 18:15
@tkausl But how would I fill them out?
– justsomexanda
Nov 15 '18 at 18:16
@tkausl They are not optional. If I only fill out the string it is still marked as red
– justsomexanda
Nov 15 '18 at 18:19
Probably because your variableusersSearch
has the wrong type.
– tkausl
Nov 15 '18 at 18:20
@tkausl No, this should be ok. First argument can be a string and third argument can be null, but the second argument does not work. I added the summary of this.
– justsomexanda
Nov 15 '18 at 18:27
|
show 1 more comment
I have following code, but I am not common with interfaces. I never worked with <> in c# before.
IResult<InstaUser> userSearch = await api.SearchHashtag()
Image: --This are the arguments information (image)--.
.
My problem: I don't know what to fill in. First argument is a string (no problem), but then I don't know what to fill in, and how to fill it in.
How would an example of this filled out look like?
(InstaSharper doesn't provide egnough information for me how to fill this out)
Thank you for your time!
-------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);
c# .net arguments
I have following code, but I am not common with interfaces. I never worked with <> in c# before.
IResult<InstaUser> userSearch = await api.SearchHashtag()
Image: --This are the arguments information (image)--.
.
My problem: I don't know what to fill in. First argument is a string (no problem), but then I don't know what to fill in, and how to fill it in.
How would an example of this filled out look like?
(InstaSharper doesn't provide egnough information for me how to fill this out)
Thank you for your time!
-------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);
c# .net arguments
c# .net arguments
edited Nov 15 '18 at 18:23
justsomexanda
asked Nov 15 '18 at 18:12
justsomexandajustsomexanda
34
34
The other two arguments are optional. Just pass in the string
– tkausl
Nov 15 '18 at 18:15
@tkausl But how would I fill them out?
– justsomexanda
Nov 15 '18 at 18:16
@tkausl They are not optional. If I only fill out the string it is still marked as red
– justsomexanda
Nov 15 '18 at 18:19
Probably because your variableusersSearch
has the wrong type.
– tkausl
Nov 15 '18 at 18:20
@tkausl No, this should be ok. First argument can be a string and third argument can be null, but the second argument does not work. I added the summary of this.
– justsomexanda
Nov 15 '18 at 18:27
|
show 1 more comment
The other two arguments are optional. Just pass in the string
– tkausl
Nov 15 '18 at 18:15
@tkausl But how would I fill them out?
– justsomexanda
Nov 15 '18 at 18:16
@tkausl They are not optional. If I only fill out the string it is still marked as red
– justsomexanda
Nov 15 '18 at 18:19
Probably because your variableusersSearch
has the wrong type.
– tkausl
Nov 15 '18 at 18:20
@tkausl No, this should be ok. First argument can be a string and third argument can be null, but the second argument does not work. I added the summary of this.
– justsomexanda
Nov 15 '18 at 18:27
The other two arguments are optional. Just pass in the string
– tkausl
Nov 15 '18 at 18:15
The other two arguments are optional. Just pass in the string
– tkausl
Nov 15 '18 at 18:15
@tkausl But how would I fill them out?
– justsomexanda
Nov 15 '18 at 18:16
@tkausl But how would I fill them out?
– justsomexanda
Nov 15 '18 at 18:16
@tkausl They are not optional. If I only fill out the string it is still marked as red
– justsomexanda
Nov 15 '18 at 18:19
@tkausl They are not optional. If I only fill out the string it is still marked as red
– justsomexanda
Nov 15 '18 at 18:19
Probably because your variable
usersSearch
has the wrong type.– tkausl
Nov 15 '18 at 18:20
Probably because your variable
usersSearch
has the wrong type.– tkausl
Nov 15 '18 at 18:20
@tkausl No, this should be ok. First argument can be a string and third argument can be null, but the second argument does not work. I added the summary of this.
– justsomexanda
Nov 15 '18 at 18:27
@tkausl No, this should be ok. First argument can be a string and third argument can be null, but the second argument does not work. I added the summary of this.
– justsomexanda
Nov 15 '18 at 18:27
|
show 1 more comment
1 Answer
1
active
oldest
votes
I found the error myself
ProblemCode:
IResult<InstaUser> userSearch = await api.SearchHashtag("string")
GoodCode:
IResult<InstaHashtagSearch> userSearch = await api.SearchHashtag("string");
Attention to the <>
Thank you all for your time
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53325555%2fc-sharp-instasharper-argument-delivery%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I found the error myself
ProblemCode:
IResult<InstaUser> userSearch = await api.SearchHashtag("string")
GoodCode:
IResult<InstaHashtagSearch> userSearch = await api.SearchHashtag("string");
Attention to the <>
Thank you all for your time
add a comment |
I found the error myself
ProblemCode:
IResult<InstaUser> userSearch = await api.SearchHashtag("string")
GoodCode:
IResult<InstaHashtagSearch> userSearch = await api.SearchHashtag("string");
Attention to the <>
Thank you all for your time
add a comment |
I found the error myself
ProblemCode:
IResult<InstaUser> userSearch = await api.SearchHashtag("string")
GoodCode:
IResult<InstaHashtagSearch> userSearch = await api.SearchHashtag("string");
Attention to the <>
Thank you all for your time
I found the error myself
ProblemCode:
IResult<InstaUser> userSearch = await api.SearchHashtag("string")
GoodCode:
IResult<InstaHashtagSearch> userSearch = await api.SearchHashtag("string");
Attention to the <>
Thank you all for your time
answered Nov 15 '18 at 19:27
justsomexandajustsomexanda
34
34
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53325555%2fc-sharp-instasharper-argument-delivery%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The other two arguments are optional. Just pass in the string
– tkausl
Nov 15 '18 at 18:15
@tkausl But how would I fill them out?
– justsomexanda
Nov 15 '18 at 18:16
@tkausl They are not optional. If I only fill out the string it is still marked as red
– justsomexanda
Nov 15 '18 at 18:19
Probably because your variable
usersSearch
has the wrong type.– tkausl
Nov 15 '18 at 18:20
@tkausl No, this should be ok. First argument can be a string and third argument can be null, but the second argument does not work. I added the summary of this.
– justsomexanda
Nov 15 '18 at 18:27