I have created this wrapper for educational purposes and it is not meant to be used for actual working purposes, but feel free to take it and edit it in anyway you like. Just make sure to credit this repo.
import circleciClient
token = 'Your token here'
client = circleciClient(token)
me = client.me()
print(me.num_projects_followed)
Output
CircleCi Api Version: 1.1
4
me()
---Returns simple user data---
days_left_in_trial
trial_end
basic_email_prefs
admin
login
student
github_id
pusher_id
heroku_api_key
num_projects_followed
all_emails
get_project(projectnumber)
---Gets project data ---
vcs_url
following
username
reponame
branches
follow_new_project(vcstype, username, project)
---Follows a new project---
following
first_build
build_summary(vcstype, username, project, buildnumber)
---Returns a summary of the specified build---
vcs_url
build_url
build_num
branch=json
committer_name
committer_email
body
why
dont_build
queued_at
start_time
stop_time
build_time_millis
username
reponame
lifecycle
outcome
status
previous
retry_of
recent_builds(buildnumber)
---Build summary for each of the last 30 recent builds, ordered by build_num---
vcs_url
build_url
build_num
branch=json
committer_name
committer_email
body
why
dont_build
queued_at
start_time
stop_time
build_time_millis
username
reponame
lifecycle
outcome
status
previous
committer_date
detailed_single_build(vcstype, username, project, buildnumber)
---Detailed summary of a single build---
vcs_url
build_url
build_num
branch=json
committer_name
committer_email
body
why
dont_build
queued_at
start_time
stop_time
build_time_millis
username
reponame
lifecycle
outcome
status
previous
committer_date
list_build_artifacts(vcstype, username, project, buildnumber)
---List the build artifacts of a projects build---
path
pretty_path
node_index
url
retry_build(vcstype, username, project, buildnumber)
---Retries build---
vcs_url
build_url
build_num
branch
vcs_revision
committer_name
committer_email
subject
body
why
dont_build
queued_at
start_time
stop_time
build_time_millis
username
reponame
lifecycle
outcome
status
retry_of
previous
committer_date
cancel_build(vcstype, username, project, buildnumber)
---Cancels a build---
vcs_url
build_url
build_num
branch
vcs_revision
committer_name
committer_email
subject
body
why
dont_build
queued_at
start_time
stop_time
build_time_millis
username
reponame
lifecycle
outcome
status
retry_of
previous
committer_date
add_user(vcstype, username, project, buildnumber)
---Adds a user to the build's SSH permissions---
vcs_url
build_url
build_num
branch
vcs_revision
committer_name
committer_email
subject
body
why
dont_build
queued_at
start_time
stop_time
build_time_millis
username
reponame
lifecycle
outcome
status
retry_of
previous
committer_date
trigger_new_build(vcstype, username, project, branch)
---Triggers a new build for project---
author_name
build_url
reponame
failed
infrastructure_fail
canceled
previous
author_email
why
build_time_millis
committer_email
parallel
retries
compare
dont_build
committer_name
usage_queued_at
branch
body
author_date
node
committer_date
start_time
stop_time
lifecycle
user
messages
job_name
retry_of
previous_successful_build
outcome
status
vcs_revision
vcs_tag
build_num
username
vcs_url
timedout
clear_cache(vcstype, username, project)
---Clears cache of a project---
status