Skip to content

Commit 23f234d

Browse files
committed
ignore venv and add requests API code
1 parent 9886cec commit 23f234d

769 files changed

Lines changed: 14 additions & 234505 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
2-
__pycache__
2+
__pycache__
3+
venv

gitlab-api-requests/main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import requests
2+
response = requests.get("https://gitlab.com/api/v4/users/nanuchi/projects")
3+
my_projects = response.json()
4+
5+
# print the whole objects list
6+
print(my_projects)
7+
print(type(my_projects))
8+
9+
# print just the names and urls
10+
for project in my_projects:
11+
print(f"Project Name: {project['name']}\nProject Url: {project['http_url_to_repo']}\n")
12+

venv/bin/Activate.ps1

Lines changed: 0 additions & 241 deletions
This file was deleted.

venv/bin/activate

Lines changed: 0 additions & 66 deletions
This file was deleted.

venv/bin/activate.csh

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)