GithubHelp home page GithubHelp logo

jstacoder / basecamp-next Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nous-consulting/basecamp-next

0.0 3.0 0.0 204 KB

Python api for Basecamp Next

License: MIT License

Python 100.00%

basecamp-next's Introduction

Python Wrapper for Basecamp Next

++++++++++++++++++++++++++++++++ api wrapper works for almost all of the new api ++++++++++++++++++++++++++++++++

for these functions to work you need to have a file with your basecamp user_id and password like this

user_id password

the file needs to be named bcnxt/new_bc/auth.txt

this is how the functions connect to your account

get projects

projects = new_bc.projects.get_all_projects(BCACCNT)

get todos

todos = new_bc.todo_lists.get_all_active_todo_lists(BCACCNT)

get people

person = new_bc.people.get_person(BCACCNT,person_id)

get yourself

me = new_bc.people.get_me(BCACCNT)

or to make any basecamp api call

from new_bc.core import send_request,make_api_url,get_auth

response = send_request(make_api_url(BASECAMP_ACCOUNT_NUM,API_ARGS),get_auth())

Everything below this line is proposed

to connect to your account

from bcnxt import BaseCamp bc = BaseCamp() bc.auth = ('basecamp_id', 'basecamp_pw') bc.connect() => if connected returns true

to get your basecamp account call get_me

bc.get_me() ie: me = bc.get_me()

Then to get your name

print me['name'] => your name

to get your todos

todos = bc.get_my_todos()

to get your messages

messages = bc.get_my_messages()

to get your projects

projects = bc.get_my_projects()

you see where this is going right?

basecamp-next's People

Contributors

ignas avatar jstacoder avatar naktinis avatar nnarhinen avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.