@@ -168,11 +168,11 @@ print_r($reply);
168168Tweeting is as easy as this:
169169
170170``` php
171- $reply = $cb->statuses_update('status=Whohoo, I just tweeted !');
171+ $reply = $cb->statuses_update('status=Whohoo, I just Tweeted !');
172172```
173173
174174: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:*
176176
177177``` php
178178$reply = $cb->statuses_update('status=' . urlencode('Fish & chips'));
@@ -205,7 +205,7 @@ $params = [
205205];
206206$reply = $cb->users_show($params);
207207```
208- This is the [ resulting tweet ] ( https://twitter.com/LarryMcTweet/status/482239971399835648 )
208+ This is the [ resulting Tweet ] ( https://twitter.com/LarryMcTweet/status/482239971399835648 )
209209sent with the code above.
210210
211211### Requests with app-only auth
@@ -314,7 +314,7 @@ to ```statuses/update```, like this:
314314// convert media ids to string list
315315$media_ids = implode(',', $media_ids);
316316
317- // send tweet with these medias
317+ // send Tweet with these medias
318318$reply = $cb->statuses_update([
319319 'status' => 'These are some of my relatives.',
320320 'media_ids' => $media_ids
@@ -323,7 +323,7 @@ print_r($reply);
323323);
324324```
325325
326- Here is a [ sample tweet ] ( https://twitter.com/LarryMcTweet/status/475276535386365952 )
326+ Here is a [ sample Tweet ] ( https://twitter.com/LarryMcTweet/status/475276535386365952 )
327327sent with the code above.
328328
329329More [ 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:
353353
3543541 . Send an ` INIT ` event to get a ` media_id ` draft.
3553552 . 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.
358358
359359Here’s a sample for video uploads:
360360
@@ -405,7 +405,7 @@ if ($reply->httpstatus < 200 || $reply->httpstatus > 299) {
405405 die();
406406}
407407
408- // Now use the media_id in a tweet
408+ // Now use the media_id in a Tweet
409409$reply = $cb->statuses_update([
410410 'status' => 'Twitter now accepts video uploads.',
411411 'media_ids' => $media_id
@@ -496,7 +496,7 @@ and will always send the correct Content-Type automatically.
496496
497497Find out more about the [ Collections API] ( https://dev.twitter.com/rest/collections/about ) in the Twitter API docs.
498498
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:
500500
501501``` php
502502$reply = $cb->collections_entries_curate([
@@ -706,7 +706,7 @@ stdClass Object
706706)
707707```
708708
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 ,
710710you should fetch the complete User Entity. The simplest way to get the
711711user entity of the currently authenticated user is to use the
712712``` account/verify_credentials ``` API method. In Codebird, it works like this:
@@ -868,7 +868,7 @@ $screen_name = $original_tweet->user->screen_name;
868868
869869// looks like this: https://twitter.com/LarryMcTweet/status/684483801687392256
870870$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
872872
873873$reply = $cb->statuses_update([
874874 'status' => "$text $url"
0 commit comments