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

Bypassing browser-based auth #2

Open
andybak opened this issue Dec 21, 2012 · 2 comments
Open

Bypassing browser-based auth #2

andybak opened this issue Dec 21, 2012 · 2 comments

Comments

@andybak
Copy link

andybak commented Dec 21, 2012

Not really an issue - but is there a way to bypass the browser-based auth if I just want to write a script that accesses my own Basecamp account?

@andybak
Copy link
Author

andybak commented Oct 12, 2013

Ha. I just came here to ask this question and found that I'd already asked it 10 months ago!

Is no-one using this wrapper directly from a script (instead of as part of a web app)?

@jstacoder
Copy link

you should just use the json api with the requests library, to do a get request with auth just do

auth = (BASECAMP_USER,BASECAMP_PASSWORD)
result = requests.get(BASECAMP_API_URL,auth=auth).json()

then result is a python dictonary of the json response. im writting a regular python api for this right now based on this. im really suprised no one else has yet.

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

2 participants