mirror of
https://github.com/KevinMidboe/Node-Com-Handler.git
synced 2025-10-29 17:50:27 +00:00
10
v1/app.py
10
v1/app.py
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
# Flask auth with HTTP '$ pip install flask_httpauth'
|
# Flask auth with HTTP '$ pip install flask_httpauth'
|
||||||
# For https '$ pip install Flask-SSLify'
|
# For https '$ pip install Flask-SSLify'
|
||||||
|
|
||||||
@@ -106,11 +107,10 @@ def get_movieRequest():
|
|||||||
url = tmdbBaseURL + requestType + requestAPI + requestQuery + requestLanguage
|
url = tmdbBaseURL + requestType + requestAPI + requestQuery + requestLanguage
|
||||||
# url = "https://api.themoviedb.org/3/search/multi?include_adult=false&query=home%20alone&language=en-US&api_key=9fa154f5355c37a1b9b57ac06e7d6712"
|
# url = "https://api.themoviedb.org/3/search/multi?include_adult=false&query=home%20alone&language=en-US&api_key=9fa154f5355c37a1b9b57ac06e7d6712"
|
||||||
|
|
||||||
payload = "{}"
|
response = requests.get(url)
|
||||||
response = requests.request("GET", url, data=payload)
|
|
||||||
|
|
||||||
print(response.text)
|
print(response.json)
|
||||||
return response.text
|
return response.json
|
||||||
|
|
||||||
else: return jsonify ({ "Error": "Query not defined." })
|
else: return jsonify ({ "Error": "Query not defined." })
|
||||||
|
|
||||||
@@ -157,4 +157,4 @@ def get_uptimesLoad():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(port=63590, debug=True)
|
app.run(host="0.0.0.0", port=63590, debug=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user