Skip to content

Commit bd96637

Browse files
authored
Add new source code comments
1 parent 2e0c734 commit bd96637

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"""Used for accessing the Skyblock API."""
2+
# Imports
23
import requests
34
import json
45

6+
# Functions
57
class Skyblock:
68
def __init__(self, api_key: str):
79
self.api_key = api_key
@@ -10,7 +12,7 @@ def get_uuid(self, player_name: str) -> str:
1012
api_request = requests.get(f"https://api.mojang.com/users/profiles/minecraft/{player_name}")
1113
return api_request.text
1214

13-
# Make API retrieval commands here
15+
# API Retrieval Commands
1416
def get_auctions(self, *, player_name: str = None):
1517
"""
1618
Returns a `dict` of the 1000 latest auctions in Skyblock.

0 commit comments

Comments
 (0)