Skip to content

Commit baff9b9

Browse files
author
mustafa
committed
today
1 parent f0b78fd commit baff9b9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
flask==1.0
2+
requests
3+
pymongo
4+
django

restap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, url):
1414

1515
def request_get(self, endpoint):
1616
yeni_url = urljoin(self.main_url, endpoint)
17-
return requests.get(yeni_url).json()
17+
return requests.get(yeni_url,headers={"APIKEY":"BLABLA"}).json()
1818

1919
def next_posts(self):
2020
next_range = self.last_end - self.last_start

0 commit comments

Comments
 (0)