klausi / mastodon-twitter-sync

Synchronizes posts from Mastodon to Twitter and back
GNU General Public License v3.0
245 stars 24 forks source link

Install complete, Twitter error about elevated access #43

Open Schnabelobst opened 1 year ago

Schnabelobst commented 1 year ago

After installation using cargo, an error occurs.

Is elevated access really necessary? This would limit usage to academics and a few others, right?

Error fetching tweets from Twitter: TwitterError(
    {
        "perf": "123456789",
        "content-type": "application/json;charset=utf-8",
        "cache-control": "no-cache, no-store, max-age=0",
        "content-length": "360",
        "x-transaction-id": "123456abcdef123",
        "x-response-time": "107",
        "x-connection-hash": "123456123456123456abcdef8a16f7b6a5b2b2fabcdefbe250526820",
        "date": "Sat, 29 Oct 2022 10:18:16 GMT",
        "server": "tsa_o",
    },
    TwitterErrors {
        errors: [
            TwitterErrorCode {
                message: "You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve",
                code: 453,
            },
        ],
    },
)
alvarolorentedev commented 1 year ago

I think elevated can be requested by anyone and still free tear. I am not certain how easy it is to get it. I requested it, I will let you know how it goes.

dkorunic commented 1 year ago

You can get elevated access immediately, upon requesting.

alvarolorentedev commented 1 year ago

i have not been granted it...maybe the stopped 🤔

alvarolorentedev commented 1 year ago

done, got it... works

klausi commented 1 year ago

The problem is that mastodon-twitter-sync uses the egg-mode library to access the Twitter API. egg-mode only supports the Twitter v1 API, where you always need elevated access now when using v1.

I think mastodon-twitter-sync could run perfectly fine with Twitter API essential access once there is a port of egg-mode to Twitter API v2.