由於the quick work of the people at Accelo,工作人員用ID現已在幾個端點:
/staff/whoami
樣本響應:
{
"meta": {
"message": "Everything executed as expected.",
"more_info": "https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok",
"status": "ok"
},
"response": {
"firstname": "Robert",
"id": "23",
"surname": "Bell"
}
}
/tokeninfo
樣本響應:
{
"meta": {
"message": "Everything executed as expected.",
"more_info": "https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok",
"status": "ok"
},
"response": {
"deployment": "example",
"email": "[email protected]",
"expiry_date": "1412345678",
"firstname": "Robert",
"locale": {
"currency": {
"symbol": "$"
},
"timezone": "Australia/Sydney"
},
"staff_id": "23",
"surname": "Bell"
}
}
/user
樣本響應:
{
"meta": {
"message": "Everything executed as expected.",
"more_info": "https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok",
"status": "ok"
},
"response": {
"email": "[email protected]",
"fax": "",
"financial_level": "all",
"firstname": "Robert",
"id": "23",
"locale": {
"currency": {
"symbol": "$"
},
"timezone": "Australia/Sydney"
},
"mobile": "+61234567890",
"phone": "09 1234 5678",
"position": "Developer",
"surname": "Bell",
"timezone": "Australia/Sydney",
"title": null,
"user_access": {
"account_invoice": {
"add": 1,
"admin": 1,
"dashboard": "",
"manages": 0,
"view": 1
},
"activity": {
"add": 1,
"admin": 1,
"dashboard": 1,
"manages": 0,
"view": 1
},
// ...
},
"user_titles": {
"account_invoice": {
"plural": "Invoices",
"singular": "Invoice"
},
"account_purchase": {
"plural": "Purchases",
"singular": "Purchase"
},
// ...
},
"username": "[email protected]"
}
}