From dda9aa6aeaf966999360fd31126ae1941b4aa40a Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 25 May 2023 19:52:28 +0200 Subject: [PATCH] =?UTF-8?q?Initial=20Commit=20f=C3=BCr=20py=20=C3=9Cbungsc?= =?UTF-8?q?ode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PyGameUebung.py | 14 ++++++++++++++ TestShazam.py | 27 +++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 PyGameUebung.py create mode 100644 TestShazam.py diff --git a/PyGameUebung.py b/PyGameUebung.py new file mode 100644 index 0000000..3a75371 --- /dev/null +++ b/PyGameUebung.py @@ -0,0 +1,14 @@ +#Übungsprogramme Python +#Hauptmenü +import random +import os + +########################################## +######## Funktionsdeklarationen ########## +########################################## + + +########################################## +######## Hauptschleife ################### +########################################## +while True: \ No newline at end of file diff --git a/TestShazam.py b/TestShazam.py new file mode 100644 index 0000000..243df8d --- /dev/null +++ b/TestShazam.py @@ -0,0 +1,27 @@ +import requests + + + +url = "https://shazam.p.rapidapi.com/songs/detect"; + + + +payload = "Generate one on your own for testing" + +headers = { + + 'content-type': "application/xml", + + 'x-rapidapi-key': "bda652d38cmsh3e7190de8cc5555p1560bajsn491e447f52d3", + + 'x-rapidapi-host': "shazam.p.rapidapi.com" + + } + + + +response = requests.request("POST", url, data=payload, headers=headers) + + + +print(response.text) \ No newline at end of file