We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a ReturnValue parameter to Invoke-TwitterCursorRequest.
ReturnValue
Invoke-TwitterCursorRequest
This will allow for tidier code in the public functions.
Instead of wrapping the returned values in an array and returning the required property like this:
$TwitterFollowers = Invoke-TwitterCursorRequest -OAuthParameters $OAuthParameters @($TwitterFollowers.ids)
or this:
@(Invoke-TwitterCursorRequest -OAuthParameters $OAuthParameters).ids
You can simple provide the property as the ReturnValue, like this:
Invoke-TwitterCursorRequest -OAuthParameters $OAuthParameters -ReturnValue ids
This is a typical return for ids and users from a cursored request.
ids : {…} next_cursor : 0 next_cursor_str : 0 previous_cursor : 0 previous_cursor_str : 0 total_count : users : {@{}...} next_cursor : 0 next_cursor_str : 0 previous_cursor : 0 previous_cursor_str : 0 total_count :
The text was updated successfully, but these errors were encountered:
d34798b
thedavecarroll
No branches or pull requests
Add a
ReturnValue
parameter toInvoke-TwitterCursorRequest
.This will allow for tidier code in the public functions.
Instead of wrapping the returned values in an array and returning the required property like this:
or this:
You can simple provide the property as the
ReturnValue
, like this:This is a typical return for ids and users from a cursored request.
The text was updated successfully, but these errors were encountered: