onedrive helper
https://stackoverflow.com/questions/9150187/cant-get-on-download-complete-to-work-with-aria2
on-bt-download-complete
on-download-complete
request body:
{
"item": {
"name": "xxx",
"@name.conflictBehavior": "rename"
}
}
status_code = 400, respond body:
{
"error": {
"code": "invalidRequest",
"message": "Annotations must be specified before other elements in a JSON object"
}
}
注意序列化时,需要把item group带@的key放前面,即:
{
"item": {
"@name.conflictBehavior": "rename",
"name": "xxx"
}
}
python的json.dumps默认是unorder的,需要传入参数sort_keys
https://stackoverflow.com/questions/10844064/items-in-json-object-are-out-of-order-using-json-dumps