Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added missing spaces for consistency. #549

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ T.get('followers/ids', { screen_name: 'tolga_tezel' }, function (err, data, res
})

//
// Twit has promise support; you can use the callback API,
// promise API, or both at the same time.
// Twit has promise support; you can use the callback API,
// promise API, or both at the same time.
//
T.get('account/verify_credentials', { skip_status: true })
.catch(function (err) {
Expand Down Expand Up @@ -78,14 +78,14 @@ T.post('statuses/destroy/:id', { id: '343360866131001345' }, function (err, data
})

//
// get `funny` twitter users
// get `funny` twitter users
//
T.get('users/suggestions/:slug', { slug: 'funny' }, function (err, data, response) {
console.log(data)
})

//
// post a tweet with media
// post a tweet with media
//
var b64content = fs.readFileSync('/path/to/img', { encoding: 'base64' })

Expand All @@ -110,10 +110,10 @@ T.post('media/upload', { media_data: b64content }, function (err, data, response
})

//
// post media via the chunked media upload API.
// You can then use POST statuses/update to post a tweet with the media attached as in the example above using `media_id_string`.
// Note: You can also do this yourself manually using T.post() calls if you want more fine-grained
// control over the streaming. Example: https://github.com/ttezel/twit/blob/master/tests/rest_chunked_upload.js#L20
// post media via the chunked media upload API.
// You can then use POST statuses/update to post a tweet with the media attached as in the example above using `media_id_string`.
// Note: You can also do this yourself manually using T.post() calls if you want more fine-grained
// control over the streaming. Example: https://github.com/ttezel/twit/blob/master/tests/rest_chunked_upload.js#L20
//
var filePath = '/absolute/path/to/file.mp4'
T.postMediaChunked({ file_path: filePath }, function (err, data, response) {
Expand All @@ -139,7 +139,7 @@ stream.on('tweet', function (tweet) {
})

//
// filter the public stream by the latitude/longitude bounded box of San Francisco
// filter the public stream by the latitude/longitude bounded box of San Francisco
//
var sanFrancisco = [ '-122.75', '36.8', '-121.75', '37.8' ]

Expand All @@ -150,7 +150,7 @@ stream.on('tweet', function (tweet) {
})

//
// filter the public stream by english tweets containing `#apple`
// filter the public stream by english tweets containing `#apple`
//
var stream = T.stream('statuses/filter', { track: '#apple', language: 'en' })

Expand Down Expand Up @@ -249,7 +249,7 @@ For a description of each Streaming endpoint, see the [Twitter API docs](https:/

```javascript
//
// I only want to see tweets about my favorite fruits
// I only want to see tweets about my favorite fruits
//

// same result as doing { track: 'bananas,oranges,strawberries' }
Expand Down