...
On utilise la route /organisations/{oid}/consents :
Code Block | ||||
---|---|---|---|---|
| ||||
/usr/bin/curl --fail --silent \ "https://core.fairandsmart.com/api/organisations/MY_ORG/consents?limit=1000" \ -H "accept: application/zip" \ -H "authorization: Bearer ACCESS_TOKEN" \ -o consents.zip |
...
On utilise la route /organisations/{oid}/consents :
Code Block | breakoutMode | wide|
---|---|---|
| ||
/usr/bin/curl --fail --silent \ "https://core.fairandsmart.com/api/organisations/MY_ORG/consents?limit=1000&serial=MY_MODELSERIAL"" \ -H "accept: application/json" \ -H "authorization: Bearer ACCESS_TOKEN" \ | /usr/bin/jq -c '.values[] | select( .value | contains("0-1"))' \ | /usr/bin/jq -c '{"userid": (.author)}' \ | /usr/bin/jq -s . |
...
On utilise la route /organisations/{oid}/treatments/query
Code Block | breakoutMode | wide|
---|---|---|
| ||
/usr/bin/curl --fail --silent \ "https://core.fairandsmart.com/api/organisations/MY_ORG/treatments/query" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "authorization: Bearer ACCESS_TOKEN" \ --data-binary '{ "organisationId":"MY_ORG", "treatmentKey":"MY_TREATMENT", "userId":"THE_USER_ID", "date":"", "attributes":{} }' \ | jq .evaluations[0].evaluation |
...