Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,7 @@
|
|
27 |
|
28 |
import requests
|
29 |
import json
|
|
|
30 |
|
31 |
url = "https://api.writesonic.com/v2/business/content/chatsonic?engine=premium"
|
32 |
|
@@ -42,7 +43,7 @@ def main()
|
|
42 |
headers = {
|
43 |
"accept": "application/json",
|
44 |
"content-type": "application/json",
|
45 |
-
"X-API-KEY": "
|
46 |
}
|
47 |
|
48 |
response = requests.post(url, json=payload, headers=headers)
|
|
|
27 |
|
28 |
import requests
|
29 |
import json
|
30 |
+
import os
|
31 |
|
32 |
url = "https://api.writesonic.com/v2/business/content/chatsonic?engine=premium"
|
33 |
|
|
|
43 |
headers = {
|
44 |
"accept": "application/json",
|
45 |
"content-type": "application/json",
|
46 |
+
"X-API-KEY": os.environ.get("test")
|
47 |
}
|
48 |
|
49 |
response = requests.post(url, json=payload, headers=headers)
|