We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eda1f0b commit b8dc761Copy full SHA for b8dc761
examples/print_vulnerability_affected_projects.py
@@ -38,9 +38,10 @@
38
custom_headers = {'Accept': 'application/vnd.blackducksoftware.project-detail-4+json'}
39
project_details = hub.execute_get(project_url, custom_headers=custom_headers).json()
40
if 'projectOwner' in project_details:
41
- custom_headers = {'Accept': 'application/vnd.blackducksoftware.user-1+json'}
+ custom_headers = {'Accept': 'application/vnd.blackducksoftware.user-4+json'}
42
owner_response = hub.execute_get(project_details['projectOwner'], custom_headers=custom_headers)
43
owner_json = owner_response.json()
44
+
45
if 'firstName' in owner_json and 'lastName' in owner_json:
46
owner_name = owner_json['firstName'] + ' ' + owner_json['lastName']
47
else:
0 commit comments