@@ -168,11 +168,11 @@ print_r($reply);
168
168
Tweeting is as easy as this:
169
169
170
170
``` php
171
- $reply = $cb->statuses_update('status=Whohoo, I just tweeted !');
171
+ $reply = $cb->statuses_update('status=Whohoo, I just Tweeted !');
172
172
```
173
173
174
174
:warning : * Make sure to urlencode any parameter values that contain
175
- query-reserved characters, like tweeting the ` & ` sign:*
175
+ query-reserved characters, like Tweeting the ` & ` sign:*
176
176
177
177
``` php
178
178
$reply = $cb->statuses_update('status=' . urlencode('Fish & chips'));
@@ -205,7 +205,7 @@ $params = [
205
205
];
206
206
$reply = $cb->users_show($params);
207
207
```
208
- This is the [ resulting tweet ] ( https://twitter.com/LarryMcTweet/status/482239971399835648 )
208
+ This is the [ resulting Tweet ] ( https://twitter.com/LarryMcTweet/status/482239971399835648 )
209
209
sent with the code above.
210
210
211
211
### Requests with app-only auth
@@ -314,7 +314,7 @@ to ```statuses/update```, like this:
314
314
// convert media ids to string list
315
315
$media_ids = implode(',', $media_ids);
316
316
317
- // send tweet with these medias
317
+ // send Tweet with these medias
318
318
$reply = $cb->statuses_update([
319
319
'status' => 'These are some of my relatives.',
320
320
'media_ids' => $media_ids
@@ -323,7 +323,7 @@ print_r($reply);
323
323
);
324
324
```
325
325
326
- Here is a [ sample tweet ] ( https://twitter.com/LarryMcTweet/status/475276535386365952 )
326
+ Here is a [ sample Tweet ] ( https://twitter.com/LarryMcTweet/status/475276535386365952 )
327
327
sent with the code above.
328
328
329
329
More [ documentation for uploading media] ( https://dev.twitter.com/rest/public/uploading-media ) is available on the Twitter Developer site.
@@ -353,8 +353,8 @@ You need to perform at least 3 calls to obtain your `media_id` for the video:
353
353
354
354
1 . Send an ` INIT ` event to get a ` media_id ` draft.
355
355
2 . Upload your chunks with ` APPEND ` events, each one up to 5MB in size.
356
- 3 . Send a ` FINALIZE ` event to convert the draft to a ready-to-tweet ` media_id ` .
357
- 4 . Post your tweet with video attached.
356
+ 3 . Send a ` FINALIZE ` event to convert the draft to a ready-to-Tweet ` media_id ` .
357
+ 4 . Post your Tweet with video attached.
358
358
359
359
Here’s a sample for video uploads:
360
360
@@ -405,7 +405,7 @@ if ($reply->httpstatus < 200 || $reply->httpstatus > 299) {
405
405
die();
406
406
}
407
407
408
- // Now use the media_id in a tweet
408
+ // Now use the media_id in a Tweet
409
409
$reply = $cb->statuses_update([
410
410
'status' => 'Twitter now accepts video uploads.',
411
411
'media_ids' => $media_id
@@ -496,7 +496,7 @@ and will always send the correct Content-Type automatically.
496
496
497
497
Find out more about the [ Collections API] ( https://dev.twitter.com/rest/collections/about ) in the Twitter API docs.
498
498
499
- Here’s a sample for adding a tweet using that API method:
499
+ Here’s a sample for adding a Tweet using that API method:
500
500
501
501
``` php
502
502
$reply = $cb->collections_entries_curate([
@@ -706,7 +706,7 @@ stdClass Object
706
706
)
707
707
```
708
708
709
- If you need to get more details, such as the user’s latest tweet ,
709
+ If you need to get more details, such as the user’s latest Tweet ,
710
710
you should fetch the complete User Entity. The simplest way to get the
711
711
user entity of the currently authenticated user is to use the
712
712
``` account/verify_credentials ``` API method. In Codebird, it works like this:
@@ -868,7 +868,7 @@ $screen_name = $original_tweet->user->screen_name;
868
868
869
869
// looks like this: https://twitter.com/LarryMcTweet/status/684483801687392256
870
870
$url = "https://twitter.com/$screen_name/status/$id";
871
- $text = 'I’d like to quote a tweet .'; // maximum length = 140 minus 24 (link length) minus 1 space
871
+ $text = 'I’d like to quote a Tweet .'; // maximum length = 140 minus 24 (link length) minus 1 space
872
872
873
873
$reply = $cb->statuses_update([
874
874
'status' => "$text $url"
0 commit comments