PSTwitterAPI | PSTwitterAPI - a PowerShell module for the Twitter API | REST library
kandi X-RAY | PSTwitterAPI Summary
kandi X-RAY | PSTwitterAPI Summary
PSTwitterAPI - a PowerShell module for the Twitter API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PSTwitterAPI
PSTwitterAPI Key Features
PSTwitterAPI Examples and Code Snippets
Community Discussions
Trending Discussions on PSTwitterAPI
QUESTION
How can I iterate each $TwitterStatuses
element/item/object?
(And, how do I inspect each "status"?)
...ANSWER
Answered 2020-Jan-23 at 10:12Your query is good already. You don't need to cast to array.
What you get from Get-TwitterStatuses_UserTimeline
is already an array of results.
You can check which type is an object by calling the .GetType()
method on them.
$TwitterStatuses.GetType()
(The Get-Type
method is available for all objects)
You can inspect the members available using Get-Member
on the object you want to inspect.
$TwitterStatuses | Get-Member
Then, in your foreach, you need to precise what you actually want to display.
Example
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PSTwitterAPI
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page