大家好,在此收集天翼云
有效期截止到2024年12月15日18:22,麻烦在此之前点击以下链接将文件发送给我,支持发送任意格式的文件,感谢~
链接:https://pan.baidu.com/disk/main#/transfer/send?surl=ACQAAAAAABLtrA
来自:超级共享专用盘
明天上线测试ok就采纳,今天要下线了。
[Python] 纯文本查看 复制代码fetchFamilyAPI = async (path): Promise => {
const { query } = url.parse(path, true);
const time = String(Date.now());
if (!this.#accessToken) {
const { sessionKey } = await this.getUserBriefInfo();
const { accessToken } = await this.getAccessTokenBySsKey(sessionKey);
this.#accessToken = accessToken;
}
const signature = this.#getSignature({
...query,
Timestamp: time,
AccessToken: this.#accessToken,
});
return got
.get(path, {
headers: {
"Sign-Type": "1",
Signature: signature,
Timestamp: time,
Accesstoken: this.#accessToken,
Accept: "application/json;charset=UTF-8",
},
cookieJar,
})
.json();
};
getFamilyList = (): Promise =>
this.fetchFamilyAPI(
"https://api.cloud.189.cn/open/family/manage/getFamilyList.action"
);
familyUserSign = (familyId: string): Promise => {
const gturl = `https://api.cloud.189.cn/open/family/manage/exeFamilyUserSign.action?familyId=${familyId}`;
return this.fetchFamilyAPI(gturl);
};
}
代码取自:https://github.com/wes-lin/cloud189-sdk