Initial Commit für py Übungscode
parent
6238ea75ac
commit
dda9aa6aea
@ -0,0 +1,14 @@
|
||||
#Übungsprogramme Python
|
||||
#Hauptmenü
|
||||
import random
|
||||
import os
|
||||
|
||||
##########################################
|
||||
######## Funktionsdeklarationen ##########
|
||||
##########################################
|
||||
|
||||
|
||||
##########################################
|
||||
######## Hauptschleife ###################
|
||||
##########################################
|
||||
while True:
|
@ -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)
|
Loading…
Reference in New Issue