nous-consulting / basecamp-next

Python wrapper for Basecamp Next
MIT License
9 stars 9 forks source link

Bypassing browser-based auth #2

Open andybak opened 11 years ago

andybak commented 11 years ago

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 commented 10 years ago

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 commented 10 years ago

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.