JTwitterStatuses::tweetWithMedia
Method to post a tweet with media.
Signature
public function tweetWithMedia(string
$status,
[string
$media = null,
[integer
$in_reply_to_status_id = null,
[float
$lat = null,
[float
$long = null,
[string
$place_id = null,
[boolean
$display_coordinates = null,
[boolean
$sensitive = null]]]]]]] )
Parameters
-
$status
- The text of the tweet.
-
$media
- File to upload
-
$in_reply_to_status_id
- The ID of an existing status that the update is in reply to.
-
$lat
- The latitude of the location this tweet refers to.
-
$long
- The longitude of the location this tweet refers to.
-
$place_id
- A place in the world.
-
$display_coordinates
- Whether or not to put a pin on the exact coordinates a tweet has been sent from.
-
$sensitive
- Set to true for content which may not be suitable for every audience.
Returns
- array
- The decoded JSON response
Errors/Exceptions
-
RuntimeException