8000 Update README · developerintermix/codebird-php@26cfaac · GitHub
[go: up one dir, main page]

Skip to content

Commit 26cfaac

Browse files
committed
Update README
1 parent e6b6bdf commit 26cfaac

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ The library returns the response HTTP status code, so you can detect rate limits
248248
I suggest you to check if the ```$reply->httpstatus``` property is ```400```
249249
and check with the Twitter API to find out if you are currently being
250250
rate-limited.
251-
See the [Rate Limiting FAQ](https://dev.twitter.com/rest/public/rate-limiting)
251+
See the [Rate Limiting FAQ](https://developer.twitter.com/en/docs/basics/rate-limiting)
252252
for more information.
253253

254254
Unless your return format is JSON, you will receive rate-limiting details
@@ -333,7 +333,7 @@ print_r($reply);
333333
Here is a [sample Tweet](https://twitter.com/LarryMcTweet/status/475276535386365952)
334334
sent with the code above.
335335

336-
More [documentation for uploading media](https://dev.twitter.com/rest/public/uploading-media) is available on the Twitter Developer site.
336+
More [documentation for uploading media](https://developer.twitter.com/en/docs/media/upload-media/overview) is available on the Twitter Developer site.
337337

338338
### Remote files
339339

@@ -423,7 +423,7 @@ $reply = $cb->statuses_update([
423423

424424
```
425425

426-
**Find more information about [accepted video formats](https://dev.twitter.com/rest/public/uploading-media#videorecs) in the Twitter Developer docs.**
426+
**Find more information about [accepted media formats](https://developer.twitter.com/en/docs/media/upload-media/uploading-media/media-best-practices) in the Twitter Developer docs.**
427427

428428
:warning: When uploading a video in multiple chunks, you may run into an error `The validation of media ids failed.` even though the `media_id` is correct. This is known. Please check back in the [Twitter community forums](https://twittercommunity.com/tags/video).
429429

@@ -480,18 +480,22 @@ $cb->setStreamingCallback('some_callback');
480480
$GLOBALS['time_start'] = time();
481481

482482
// Second, start consuming the stream:
483-
$reply = $cb->user();
483+
$reply = $cb->statuses_filter();
484484

485485
// See the *Mapping API methods to Codebird function calls* section for method names.
486486
// $reply = $cb->statuses_filter('track=Windows');
487487
```
488488

489-
Find more information on the [Streaming API](https://dev.twitter.com/streaming/overview)
489+
You should be able to set a timeout for the streaming API using `setTimeout`.
490+
In addition, your callback will receive empty messages if no events occur,
491+
and you should make your function `return true;` in order to cancel the stream.
492+
493+
Find more information on the [Streaming API](https://developer.twitter.com/en/docs/tweets/filter-realtime/overview)
490494
in the developer documentation website.
491495

492496

493-
Twitter Collections API
494-
-----------------------
497+
Twitter Collections, Direct Messages and Account Activity APIs
498+
--------------------------------------------------------------
495499

496500
Collections are a type of timeline that you control and can be hand curated
497501
and/or programmed using an API.
@@ -501,12 +505,13 @@ often they will be decomposed, efficient objects with information about users,
501505
Tweets, and timelines grouped, simplified, and stripped of unnecessary repetition.
502506

503507
Never care about the OAuth signing specialities and the JSON POST body
504-
for POST collections/entries/curate.json. Codebird takes off the work for you
508+
for POST and PUT calls to these special APIs. Codebird takes off the work for you
505509
and will always send the correct Content-Type automatically.
506510

507-
Find out more about the [Collections API](https://dev.twitter.com/rest/collections/about) in the Twitter API docs.
511+
Find out more about the [Collections API](https://developer.twitter.com/en/docs/tweets/curate-a-collection/overview/about_collections) in the Twitter API docs.
512+
More information on the [Direct Messages API](https://developer.twitter.com/en/docs/direct-messages/api-features) and the [Account Activity API](https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/overview) is available there as well.
508513

509-
Here’s a sample for adding a Tweet using that API method:
514+
Here’s a sample for adding a Tweet using the Collections API:
510515

511516
```php
512517
$reply = $cb->collections_entries_curate([
@@ -522,7 +527,7 @@ var_dump($reply);
522527
TON (Twitter Object Nest) API
523528
-----------------------------
524529

525-
The [TON (Twitter Object Nest) API](https://dev.twitter.com/rest/ton) allows implementers to upload media and various assets to Twitter.
530+
The [TON (Twitter Object Nest) API](https://developer.twitter.com/en/docs/ads/audiences/overview/ton-upload.html) allows implementers to upload media and various assets to Twitter.
526531
The TON API supports non-resumable and resumable upload methods based on the size of the file.
527532
For files less than 64MB, non-resumable may be used. For files greater than or equal to 64MB,
528533
resumable must be used. Resumable uploads require chunk sizes of less than 64MB.
@@ -608,7 +613,7 @@ fclose($fp);
608613
Twitter Ads API
609614
---------------
610615

611-
The [Twitter Ads API](https://dev.twitter.com/ads/overview) allows partners to
616+
The [Twitter Ads API](https://developer.twitter.com/en/docs/ads/general/overview) allows partners to
612617
integrate with the Twitter advertising platform in their own advertising solutions.
613618
Selected partners have the ability to create custom tools to manage and execute
614619
Twitter Ad campaigns.

0 commit comments

Comments
 (0)
0