I am attempting to access the random color palette option from this API using Python and requests http://colormind.io/api-access/
The API's instructions do not mention how to access with requests in Python. I have tried several things and receive this message in Terminal when attempting to print the JSON.
bound method Response.json of <Response [200]>>
my code :
import requests as req
import json
def query():
url = 'http://colormind.io/api/'
response = req.get(url, data={"model":"default"}
)
print(response.json)
query()
when attempting to load the JSON or print JSON text it appears like it is an empty dictionary or list
what's happening here?