Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

401 on OAUth1 #41

Closed
maciejbak85 opened this issue Mar 22, 2013 · 2 comments
Closed

401 on OAUth1 #41

maciejbak85 opened this issue Mar 22, 2013 · 2 comments

Comments

@maciejbak85
Copy link

Hello

heres my code:
https://gist.github.com/daaatz/5221554

But on connect I have:
hosebird-client-0 Error connecting w/ status code - 401
Is this problem w lib or my code ?

Thanks

@xsl
Copy link
Contributor

xsl commented Mar 22, 2013

Do you have any trouble connecting with hbc-example?

Ah:

  val auth = new OAuth1(Props.get("twitter4j.oauth.consumerKey").openOr(""), Props.get("twitter4j.oauth.consumerKey").openOr(""),
    User.currentUser.get.twitterToken.is, User.currentUser.get.twitterTokenSecret.is)

The second Props.get("twitter4j.oauth.consumerKey").openOr("") should be your secret, not your key again

@maciejbak85
Copy link
Author

Heh lol ;) Im blind, now it works fine. Thanks

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

No branches or pull requests

2 participants