tungtv202/getlink_fshare

[REQ] New feature: Allow users to add their valid tokens

Opened this issue · 0 comments

Hi,
It's an excellent project and thank you very much for sharing.

I wonder it would be great if there is a feature for pubic API donation. With a short introduction for the API gathering:

Request example:

curl --location --request POST 'https://api.fshare.vn/api/user/login' \
--header 'Content-Type: application/json' \
--data-raw '{
            "user_email": "usename@gmail.com",
            "password": "passWord",
            "app_key": "L2S7R6ZMagggC5wWkQhX2+aDi467PPuftWUMRFSn"
        }
'

Response:

{
"code": 200,
"msg": "Login successfully!",
"token": "483f5bb8ab3812070f95b2f52d0ff5645a4f4",
"session_id": "f35jj7d0q5v91dt6b4r3vns"
} 

I think a simple form for users to submit their valid token & session_id is good enough. Additionally we would need a database for tokens, token & session_id validity check, and SSL support as well for security in that case.