Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not authenticate you." Direct Message Twitter #315

Open
DDeploy opened this issue Nov 28, 2018 · 5 comments
Open

"Could not authenticate you." Direct Message Twitter #315

DDeploy opened this issue Nov 28, 2018 · 5 comments

Comments

@DDeploy
Copy link

DDeploy commented Nov 28, 2018

Hi, i'm trying to send direct message and i have this error : {"code":32,"message":"Could not authenticate you."}

here it is my code :

 client.post('direct_messages/events/new', {
    type: 'message_create',
    message_create: {
        target: {
	    recipient_id: "4...",
            message_data: {
                text: "hi"
            }
        }
    }
}) 

I have surely activated the access level for enabling Direct Messages but still ....

@dandv
Copy link

dandv commented Dec 18, 2018

Was there a ! character anywhere in the payload? We fixed that problem in twitter-lite and now DMs can send any characters.

@MarcGodard
Copy link

Same problem. but your message_data should be moved up a level, same level as target.

@ibrokemycomputer
Copy link

I switched to https://www.npmjs.com/package/twit and it worked like a charm. The switch took about 45 seconds lol. Probably a header issue but ¯_(ツ)_/¯

@MarcGodard
Copy link

I also switched. I think this repo is dead.

@icodeforlove
Copy link

Repo is dead, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants