< Back
Send-PicTweet
Post
NAME Send-PicTweet
SYNOPSIS
This uploads a picture using the chunked Twitter upload and sends a tweet witht the message.
SYNTAX
Send-PicTweet [-Message] <String> [-PathtoPic] <String> [<CommonParameters>]
DESCRIPTION
Unlike tweeting with from browser or smartphone Media Upload is handled seperately from the tweet process in the
TwitterAPI.
The media data must be uploaded first and the provided media_id is used in the tweet.
This function combines both mechanisms to one function.
PARAMETERS
-Message <String>
Enter the message that the tweet should include
Example: '-message "Hello World"'
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-PathtoPic <String>
Enter the Path to the image you want to include in the tweet. File must be smaller than 5MB. (Twitter
Restriction)
Example: '-PathtoPic "C:\\temp\\test.jpg"'
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Send-PicTweet -Message "Hello World" -PathtoPic "C:\\temp\\test.jpg"
This uploads the test.jpg file to twitter and then sends a tweet with the provided message as well as the media_id
received by the upload
RELATED LINKS
SYNOPSIS
This uploads a picture using the chunked Twitter upload and sends a tweet witht the message.
SYNTAX
Send-PicTweet [-Message] <String> [-PathtoPic] <String> [<CommonParameters>]
DESCRIPTION
Unlike tweeting with from browser or smartphone Media Upload is handled seperately from the tweet process in the
TwitterAPI.
The media data must be uploaded first and the provided media_id is used in the tweet.
This function combines both mechanisms to one function.
PARAMETERS
-Message <String>
Enter the message that the tweet should include
Example: '-message "Hello World"'
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-PathtoPic <String>
Enter the Path to the image you want to include in the tweet. File must be smaller than 5MB. (Twitter
Restriction)
Example: '-PathtoPic "C:\\temp\\test.jpg"'
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Send-PicTweet -Message "Hello World" -PathtoPic "C:\\temp\\test.jpg"
This uploads the test.jpg file to twitter and then sends a tweet with the provided message as well as the media_id
received by the upload
RELATED LINKS