jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
776 stars 234 forks source link

Twitter statuses/user_timeline issue workaround #273

Closed shaneiseminger closed 1 year ago

shaneiseminger commented 1 year ago

This library appears to not be maintained much anymore, but if anyone is hitting a "Sorry, that page does not exist" error on statuses/user_timeline, you just need to add a trailing slash and it'll work. No doubt a sign of falling code quality at Twitter.

The workaround for Codebird (you'll have to fork unless the maintainers add this) is to add this code to line 864 in codebird.php:

    if ($method == 'statuses/user_timeline') {
        $method = 'statuses/user_timeline/';
    }
shaneiseminger commented 1 year ago

Twitter has now resolved this issue on their end, so no workaround is needed anymore.