first commit

This commit is contained in:
2025-10-20 12:32:18 +08:00
commit 2cfd7c5a08
121 changed files with 254585 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "f48a87ec",
"metadata": {},
"outputs": [],
"source": [
"from requests import get,post\n",
"param = {\n",
" \"username\": \"zhongwei\",\n",
" \"password\": \"123456a\",\n",
" \"client_id\": \"client\",\n",
" \"grant_type\": \"password\",\n",
" \"client_secret\": \"123456\",\n",
"}\n",
"# ip = \"http://192.168.0.244:8100\"\n",
"ip = \"https://band.hxzhxy.cn\"\n",
"data = get(url=f\"{ip}/oauth/token\", params=param).json()\n",
"token = data[\"access_token\"]\n",
"header = {\"Authorization\": f\"Bearer {token}\"}"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "99143515",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "base",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
}
},
"nbformat": 4,
"nbformat_minor": 5
}