Primer commit con datos

This commit is contained in:
2020-11-19 02:47:55 -03:00
parent b701f1e561
commit 5ff211c1db
7 changed files with 67 additions and 0 deletions

12
services/photos.py Normal file
View File

@@ -0,0 +1,12 @@
import requests
url = "https://api.unsplash.com/photos/"
def get(key):
data = {
'client_id': key,
}
response = requests.get(url, params=data)
return {'result': response.json()}