13 lines
206 B
Python
13 lines
206 B
Python
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()}
|
|
|