import requests
def fetch_data():
url = "https://example.com/api/users"
headers = {
"Authorization": "Bearer TEST_TOKEN"
}
response = requests.get(url, header=headers)
data = response.json()
return data
print(fetch_data())
import requests
def fetch_data():
url = "https://example.com/api/users"
headers = {
"Authorization": "Bearer TEST_TOKEN"
}
response = requests.get(url, header=headers)
data = response.json()
return data
print(fetch_data())
البته تیکه اصلیش اینه فکر کنم باید از اتر response استفاده کنم ؟
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟