Esempio n. 1
0
def get_me(account_num):
    return send_request(make_api_url(account_num,'people','me'),get_auth())
Esempio n. 2
0
def get_all_active_projects(account_num):
    return send_request(make_api_url(account_num,'projects'),AUTH)
Esempio n. 3
0
def get_all_topics(account_num):
    return send_request(make_api_url(account_num, 'topics'), get_auth())
Esempio n. 4
0
def get_starred_projects(account_num=BC):
    return send_request(make_api_url(account_num,'stars'))
Esempio n. 5
0
def get_person(account_num, person_id):
    return send_request(make_api_url(account_num, 'people', person_id),
                        get_auth())
Esempio n. 6
0
def get_todo_lists_for_person(account_num,person_id):
    return send_request(make_api_url(account_num,'people',person_id,'assigned_todos'),get_auth())
Esempio n. 7
0
def get_complete_project_todo_lists(account_num,project_id):
    return send_request(make_api_url(account_num,'projects',project_id,'todolists','completed'),get_auth())
Esempio n. 8
0
def get_all_people(account_num=BC):
    return send_request(make_api_url(account_num,'people'))
Esempio n. 9
0
def get_all_topics(account_num):
    return send_request(make_api_url(account_num,'topics'),get_auth())
Esempio n. 10
0
def get_person(account_num=BC,person_id=None):
    if person_id is None:
        raise IOError('need a person to get')
    return send_request(make_api_url(account_num,'people',person_id))
Esempio n. 11
0
def get_me(account_num=None):
    if account_num is None:
        account_num = BC
    return send_request(make_api_url(account_num,'people','me'))
Esempio n. 12
0
def add_comment_to_todo(account_num,project_id,todo_id,content,*subs):
    url = make_api_url(account_num,'projects',project_id,'todos',todo_id,'comments')
    res = send_request(url,json=False,post=True,session=get_session(),data=make_comment_content(content,*subs))
    return res
Esempio n. 13
0
def get_project_subscribers(account_num,project_id,name_list):
    return send_request(make_api_url(account_num,'projects',project_id,'accesses'),session=get_session())
Esempio n. 14
0
def get_starred_projects(account_num):
    return send_request(make_api_url(account_num,'stars'),get_auth())
Esempio n. 15
0
def get_all_active_todo_lists(account_num):
    return send_request(make_api_url(account_num,'todolists'),get_auth())
Esempio n. 16
0
def get_project_topics(account_num,project_id):
    return send_request(make_api_url(account_num,'projects',project_id,'topics'),get_auth())
Esempio n. 17
0
def get_all_complete_todo_lists(account_num):
    return send_request(make_api_url(account_num,'todolists','completed'),get_auth())
Esempio n. 18
0
def get_all_active_todo_lists(account_num):
    return send_request(make_api_url(account_num, 'todolists'), get_auth())
Esempio n. 19
0
def get_todo(account_num,project_id,todo_id):
    return send_request(make_api_url(account_num,'projects',project_id,'todos',todo_id),get_auth())
Esempio n. 20
0
def get_all_complete_todo_lists(account_num):
    return send_request(make_api_url(account_num, 'todolists', 'completed'),
                        get_auth())
Esempio n. 21
0
def update_todo(account_number,project_id,todo_id,todo_data):
    url = make_api_url(account_number,'projects',project_id,'todo',todo_id)
    return send_request(url,post_data=todo_data,post=True)
Esempio n. 22
0
def get_todo_lists_for_person(account_num, person_id):
    return send_request(
        make_api_url(account_num, 'people', person_id, 'assigned_todos'),
        get_auth())
Esempio n. 23
0
def get_all_people(account_num):
    return send_request(make_api_url(account_num, 'people'), get_auth())
Esempio n. 24
0
def get_active_project_todo_lists(account_num, project_id):
    return send_request(
        make_api_url(account_num, 'projects', project_id, 'todolists'),
        get_auth())
Esempio n. 25
0
def get_project(account_num,project_id):
    return send_request(make_api_url(account_num,'projects',project_id),AUTH)
Esempio n. 26
0
def get_todo(account_num, project_id, todo_id):
    return send_request(
        make_api_url(account_num, 'projects', project_id, 'todos', todo_id),
        get_auth())
Esempio n. 27
0
def get_all_archived_projects(account_num):
    return send_request(make_api_url(account_num,'projects','archived'),AUTH)
Esempio n. 28
0
def get_active_project_todo_lists(account_num,project_id):
    return send_request(make_api_url(account_num,'projects',project_id,'todolists'))
Esempio n. 29
0
def get_project_topics(account_num, project_id):
    return send_request(
        make_api_url(account_num, 'projects', project_id, 'topics'),
        get_auth())
Esempio n. 30
0
def get_person(account_num,person_id):
    return send_request(make_api_url(account_num,'people',person_id),get_auth())