Skip to content

Commit e531095

Browse files
authored
Move BASE_URL to src/env.py
1 parent 885ea7f commit e531095

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import requests
22

3+
from .env import BASE_URL
34
from .utils import convert_to_locale
45

5-
BASE_URL = "https://graph.threads.net/v1.0"
6-
76
def get_user_id(headers):
87
response = requests.get(f"{BASE_URL}/me?fields=id", headers=headers)
98
response.raise_for_status()

0 commit comments

Comments
 (0)