Open Riduidel opened 5 years ago
My raspberry is able to connect to api.twitter.com, so it's not a network error
curl https://api.twitter.com/1.1/account/verify_credentials.json?include_entities=false&skip_status=true&tweet_mode=extended
{"errors":[{"code":215,"message":"Bad Authentication data."}]}
And notice I've literaly copy/pasted credentials obtained from twitter (and they are visible in the beehive.conf
file (but I won't show them)
Interestingly, i've tried using those keys with tweetledee (http://tweetledee.github.io/tweetledee/), installed on the same Raspberry server, and it doesn't work either ! So it seems like the keys are ... not the ones adapted to that kind of application, which is weird.
I don't think this is related to Raspbian or the Pi. How/where exactly did you obtain your keys? You essentially need to create a new Application over on https://developer.twitter.com/en/apps
Next you'll need to generate an accesstoken for that newly created application there.
Yes that's exactly what I did
I have created my application
And I've created my customer key/secret and access key/secret
That I've copied in beehive Twitter bee config
... Well, forget about it, it seems like i've copy/pasted the consumer key with a space after (which was not trimmed by beehive). As a consequence, consumer key was bad.
Do you think it would be possible to always have those keys trimmed in UI ? because sometimes copy/pasting things is ... inefficient
oh yes it works ! https://twitter.com/riduidel/status/1133642224460283905
Yeah, trimming those strings is probably a good idea! I'll rename and reopen the ticket to match that suggestion. Thanks for your feedback!
I'm trying to replace IFTTT by Beehive running on my raspberry 3 (which uses Raspbian Stretch).
Beehive starts normally, but when I try to set up twitter bee, I get this error message
I'm using credentials given by dev.twitter.com application page. Is there something I'm missing/misconfiguring ?