Closed kript closed 1 year ago
With the code below, project1.importingUser now has information, e.g.
project1.importingUser
>>> project1.importingUser {'id': 'my-id', 'name': 'John Constable', 'username': 'john', 'email': 'my@email'}
import os import snyk if "SNYK_TOKEN" in os.environ: SNYK_TOKEN = os.getenv("SNYK_TOKEN") else: print("Missing Snyk Token") print( "generate one for Sanger Institute Organization at https://docs.snyk.io/snyk-api-info/authentication-for-api" ) exit client = snyk.SnykClient(SNYK_TOKEN) projects = client.projects.all() project1 = projects[0] project1.importingUser project1.owner
LGTM - Thanks for the contribution <3
With the code below,
project1.importingUser
now has information, e.g.