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

optionally return user's connections in inactive/archived projects #16

Merged
merged 2 commits into from
Mar 17, 2023

Conversation

ericpalakovichcarr
Copy link
Contributor

Enhances the existing get_connections_by_user_id function to optionally get connections in inactive/archived projects.

from syncsketch import SyncSketchAPI

username = "username"
api_key = "api-key-123"

s = SyncSketchAPI(username, api_key)
account_id={{account ID}}
user_id={{user ID}}

# old - get user's connections in active projects
active_connections = s. get_connections_by_user_id(user_id, account_id)

# new! - get user's connections in active, inactive, and archived projects
all_connections = s. get_connections_by_user_id(user_id, account_id, include_inactive=True, include_archived=True)

syncsketch/syncsketch.py Outdated Show resolved Hide resolved
@soccer99 soccer99 merged commit 4b9db09 into master Mar 17, 2023
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

Successfully merging this pull request may close these issues.

2 participants