Open tom-bywild opened 1 year ago
I can image that it might be enough to provide a selection between the v1.1/v2
api surface to use in the CP (or via configuration).
In code, a simple mapping of the respective endpoints to endpoint-generators for v1.1/v2
might work. If no selection is made, v1.1
is used. This shouldn't introduce any breaking changes.
Looking further into the issue, the 3rd party OAuth library might also be the cause of failed requests here. The plugin currently uses the OAuth1
-handler from League
, but we might actually need OAuth2 (Twitter doc).
FYI we’re in the middle of some major changes to the plugin, so this will be addressed in the next major release.
Thanks for the heads up, can you provide a (rough) timeline? It would help me estimate if we have to roll our own solution, or go with Verbb. Thanks!
I can’t provide a firm timeline but looking like Q1 for a major version update, which will include Twitter v2 API integration, among a few other major changes.
Thanks for the update! Would it be possible to participate in a beta? I'll probably need an implementation end of January/start of February. Maybe I could meet the requirements with a beta-release and update to production at a later point.
@engram-design Do you have any more information on this? Feedback would be much appreciated! Thanks!
Nothing yet, but expect it still in this Q1. Nothing solid enough for a beta, but things are progressing as planned for a release soon.
Describe the bug
Description
The current implementation for the Twitter-Provider uses the legacy
/1.1/...
-endpoints. Twitter has changed their permission model, having now different levels of access.essential
: used for new projects, free, includes ability to call a subset of endpointselevated
: higher tier, commercial, higher limits and access to more endpointsUsing the
/1.1/...
-endpoints, as the plugin does now, therefore doesn't work with the endpoints that are being called by the plugin with only the essential-access. A migration is required.The error-log looks something like this:
It doesn't look like there's any way to only use legacy endpoints w/ a legacy permission model.
Quick local test
A quick test by changing the plugin's code to call the
/2/...
-endpoints results in an error related to calling an unknown API-endpoint.Summary
To enable usage with the Twitter-API for
essential
users, the endpoints have to be migrated from/1.1/...
to/2/...
, or the developer has to apply for elevated access.Therefore, the plugin is currently broken for probably the vast majority of devs using the Twitter-provider, as even for testing one needs elevated access.
Steps to reproduce
essential
access levelCraft CMS version
Craft Pro 4.3.5
Plugin version
3.0.2
Multi-site?
No response
Additional context
No response