popstk / onedrivehelper

onedrive helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onedrivehelper

onedrive helper

备忘

aria2下载完成

https://stackoverflow.com/questions/9150187/cant-get-on-download-complete-to-work-with-aria2

  • on-bt-download-complete
  • on-download-complete

onedrive api

400 Annotations must be specified before other elements in a JSON object

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

About

onedrive helper

License:MIT License


Languages

Language:Python 61.4%Language:Go 38.1%Language:Shell 0.5%