Files
songyi/sample/curl/login.curl
2025-02-16 10:23:12 +08:00

39 lines
1.7 KiB
Plaintext
Executable File

## request code
curl 'https://bandu-api.songy.info/v2/account/captcha?action=login&captcha_type=sms' \
-H 'accept: */*' \
-H 'accept-language: en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6' \
-H 'authorization: Bearer' \
-H 'content-type: application/json; charset=utf-8' \
-H 'dnt: 1' \
-H 'origin: https://webapp.songy.info' \
-H 'priority: u=1, i' \
-H 'referer: https://webapp.songy.info/' \
-H 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-site' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \
--data-raw '{"phone_code":"86","phone_number":"18240366339"}'
## login
curl 'https://bandu-api.songy.info/v2/account/login' \
-H 'accept: */*' \
-H 'accept-language: en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6' \
-H 'authorization: Bearer' \
-H 'content-type: application/json; charset=utf-8' \
-H 'dnt: 1' \
-H 'origin: https://webapp.songy.info' \
-H 'priority: u=1, i' \
-H 'referer: https://webapp.songy.info/' \
-H 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-site' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \
--data-raw '{"phone_code":"86","phone_number":"18240366339","captcha_code":"582952"}'