[A.] Daniel Doubrovkine (dB.)
CTO @ Artsy
PS: I'm running the NYC TCS Marathon in 2018 for TeamForKids charity. Please donate here.
--
Find all info about the Artsy.net API at https://developers.artsy.net.
---
You received this message because you are subscribed to the Google Groups "Artsy API Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to artsy-api-develo...@googlegroups.com.
To post to this group, send email to artsy-api-...@googlegroups.com.
Visit this group at https://groups.google.com/group/artsy-api-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/artsy-api-developers/e16237ef-bc29-4382-b6e9-c7bd544b3c32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
import json, requests
client_id = 'your_client_id'
client_secret = 'your_client_secret'
api_url = 'https://api.artsy.net/api/tokens/xapp_token'
##THIS BIT IS GETTING THE TOKEN
r = requests.post(api_url,
data={
"client_id":client_id,
"client_secret":client_secret
})
j = json.loads(r.text)
token = j["token"]
##THIS BIT GETS THE INFORMATION
##YOU WERE TYPING IN THE NAME OF THE ARTIST AND I BELIEVE IT SHOULD BE THE ID
headers = {"X-Xapp-Token" : token}
url = "https://api.artsy.net/api/artists"
r = requests.get(url, headers = headers)
data = json.loads(r.text)
--
Find all info about the Artsy.net API at https://developers.artsy.net.
---
You received this message because you are subscribed to the Google Groups "Artsy API Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to artsy-api-develo...@googlegroups.com.
To post to this group, send email to artsy-api-...@googlegroups.com.
Visit this group at https://groups.google.com/group/artsy-api-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/artsy-api-developers/a1dbc71f-edd0-425b-a760-8d45230a0d65%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to artsy-api-developers+unsub...@googlegroups.com.