Skip to content

Instantly share code, notes, and snippets.

@sntran
Created November 20, 2023 16:06
Show Gist options
  • Save sntran/d8b7c72b70e5a76d6218e22bc894b4cb to your computer and use it in GitHub Desktop.
Save sntran/d8b7c72b70e5a76d6218e22bc894b4cb to your computer and use it in GitHub Desktop.

Revisions

  1. sntran revised this gist Nov 20, 2023. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    GET https://www.fshare.vn/api/v3/files?path=%2F

    ```
    {
    "items": [{
    "id": string,
    @@ -48,13 +49,14 @@ GET https://www.fshare.vn/api/v3/files?path=%2F
    "path": string
    }]
    }
    ```

    ---

    POST https://www.fshare.vn/api/v3/files/upload-session
    Authorization: Bearer token
    Cookie: fpt_uuid=%22dd716b68-e90f-4071-8d3e-3d5897070fd8%22; ajs_group_id=%22null%22; _ftitfsi=3136383335373539; _fsgaid=16835759; PHPSESSID=f9p2o8s5oekn2vruhat6ufm774; fshare-app=v8j7edp9fd97ucrfgkkvg5aeaq;
    { "path": string, "name": string, "size": number, secure: boolean }
    `{ "path": string, "name": string, "size": number, secure: boolean }`

    { "location": string }

    @@ -70,10 +72,12 @@ GET https://www.fshare.vn/api/v3/files/folder?linkcode=${code}&sort=type%2Cname&

    POST https://www.fshare.vn/api/v3/follows/new-file-noti
    Authorization: Bearer token
    ```
    {
    "parent_folder": File,
    "file_change":["ID1O5D7KYV9D"]
    }
    }
    ```

    ---

  2. sntran created this gist Nov 20, 2023.
    92 changes: 92 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,92 @@
    GET https://www.fshare.vn/api/v3/files?path=%2F

    {
    "items": [{
    "id": string,
    "linkcode": string,
    "secure" "1|0",
    "public": "1|0",
    "copied": "0|1",
    "shared": "0|1",
    "directlink": "0",
    "type" "0|1",
    "path": string,
    "hash_index": string,
    "pid": null|string,
    "size": string,
    "mimetype": null|string,
    "downloadcount": string,
    "description": string,
    "created": null,
    "lastdownload": null,
    "pwd": null,
    "modified": null,
    "storage_id": null,
    "folder_path": null,
    "realname": null,
    "crc32": null
    }],
    "images": [],
    "page": -1,
    "parent": null,
    "allTagShow": [{
    "id": number,
    "name": string,
    "name_en": string,
    "color": string,
    "status": "1|0"
    }],
    "allTagShowLimit": [{
    "id": number,
    "name": string,
    "name_en": string,
    "color": string,
    "status": "1|0"
    }],
    "path": [{
    "name": string,
    "path": string
    }]
    }

    ---

    POST https://www.fshare.vn/api/v3/files/upload-session
    Authorization: Bearer token
    Cookie: fpt_uuid=%22dd716b68-e90f-4071-8d3e-3d5897070fd8%22; ajs_group_id=%22null%22; _ftitfsi=3136383335373539; _fsgaid=16835759; PHPSESSID=f9p2o8s5oekn2vruhat6ufm774; fshare-app=v8j7edp9fd97ucrfgkkvg5aeaq;
    { "path": string, "name": string, "size": number, secure: boolean }

    { "location": string }

    POST https://up.fshare.vn/upload/:id
    Content-Length: 20000000
    Content-Range bytes 0-19999999/6636662117

    ---

    GET https://www.fshare.vn/api/v3/files/folder?linkcode=${code}&sort=type%2Cname&page=${page}&per-page=50

    ---

    POST https://www.fshare.vn/api/v3/follows/new-file-noti
    Authorization: Bearer token
    {
    "parent_folder": File,
    "file_change":["ID1O5D7KYV9D"]
    }

    ---

    GET https://www.fshare.vn/api/v3/notifications/get?limit=100

    ---

    GET https://www.fshare.vn/api/v3/files/list-uploader?event-id=10-2023&order=asc&offset=0&limit=10

    ---

    GET https://www.fshare.vn/api/v3/multiclouds/all-acc

    ---

    GET https://www.fshare.vn/api/v3/files/manage-tag