Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Commit

Permalink
Added support to upload native video to twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
princesonittn committed Apr 28, 2016
1 parent 12273e7 commit fba8a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ For a example result see https://dev.twitter.com/rest/reference/post/media/uploa

## How to upload Video ##
To upload video to Twitter, call `twitter.uploadVideo(params, accessToken, accessTokenSecret, callback)` with params containing the following:
* _media_: Path to the file containing the image.
* _media_: Path to the file containing the video.

You can pass media_id to the statuses/update endpoint and video will be uploaded to twitter. Please note that video should be less than 15mb or 30 sec in length
You can pass media_id to the statuses/update endpoint and video will be uploaded to twitter. Please note that video should be less than 15mb or 30 sec in length.
2 changes: 1 addition & 1 deletion twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Twitter.prototype.uploadMedia = function(params, accessToken, accessTokenSecret,
};

/**
* upload video for twitter
* upload video to twitter
* @param params
* @param accessToken
* @param accessTokenSecret
Expand Down

0 comments on commit fba8a11

Please sign in to comment.