You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API Helpers cmdlets to mimic +125 Twitter API enpoints.
You can set multiple ApiKey/Token.
Handles rate limit for you, and rotate through your ApiKeys.
[WIP] Handles loops to request more data (eg: 200 tweets per call).
Installation
Install-Module PSTwitterAPI
Getting started
Import-Module PSTwitterAPI
$OAuthSettings=@{
ApiKey=$env:ApiKeyApiSecret=$env:ApiSecretAccessToken=$env:AccessTokenAccessTokenSecret=$env:AccessTokenSecret
}
Set-TwitterOAuthSettings@OAuthSettings# Use one of the API Helpers provided:$TwitterUser=Get-TwitterUsers_Lookup-screen_name 'mkellerman'# Send tweet to your timeline:Send-TwitterStatuses_Update-status "Hello World!! @mkellerman #PSTwitterAPI"# Send DM to a user:$Event=Send-TwitterDirectMessages_EventsNew-recipient_id $TwitterUser.Id-text "Hello @$($TwitterUser.screen_name)!! #PSTwitterAPI"# Get the tweets you would see on your timeline:$TwitterStatuses=Get-TwitterStatuses_HomeTimeline# Get tweets from someone elses timeline (what they tweeted):$TwitterStatuses=Get-TwitterStatuses_UserTimeline-screen_name 'mkellerman'