Abraham Williams
Abraham Williams
Currently the tests hit the live Twitter API so Travis will only run them when I create the PRs to avoid anyone from exfiltrating the credentials. #671 will fix this....
@gunnrryy https://twitteroauth.com/ is a live example site and the source is available https://github.com/abraham/twitteroauth-demo
Maybe TwitterOAuth isn't installed fully? `var_dump($connection);` should show something like this: ```php object(Abraham\TwitterOAuth\TwitterOAuth)#2 (16) { ["timeout":protected]=> int(5) ["connectionTimeout":protected]=> int(5) ["maxRetries":protected]=> int(0) ["retriesDelay":protected]=> int(1) ["apiVersion":protected]=> string(1) "2" ["decodeJsonAsArray":protected]=> bool(false) ["userAgent":protected]=> string(40)...
For the forbidden error checkout https://github.com/abraham/twitteroauth/issues/1090#issuecomment-1175526469. I think your access tokens don't permit write access.
I think this is fixed with permission changes. Please let me know otherwise.
It's not officially supported but you can override `apiUrl` in 3.1.0 and later which will allow custom API hosts.
The demo just assumes that requests work without checking for success.
Twitter doesn't support batching multiple requests together in a single connection like Google APIs does. The best that could be done would be to queue up several requests and make...
I believe this will require some work but I haven't had time to look into it yet.
Thanks. I'll put this on the list. In the meantime you should wrap the media upload request in a catch and retry if it fails.