1、問題描述
調用華為雲空間檔案管理接口,總是傳回錯誤,
{"error":{"errorDetail":[{"domain":"global","reason":"authError","description":"Access Forbidden","errorPos":"header","errorParam":"Authorization","errorCode":"21000403"}],"code":403,"description":"Access Forbidden"}}
解決方案
您是否在agc平台API中打開了雲空間服務,還需要同時內建帳号和Push服務
https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/server-config-agc-0000001063664041#section65498832
2、問題描述
想檢視根目錄下某個檔案夾下的檔案清單, 應該怎樣設定參數,是否支援
解決方案
您可以調用Files:list接口來查詢檔案清單。
https://developer.huawei.com/consumer/cn/doc/development/HMSCore-References/server-api-fileslist-0000001050153649#section20154815148
通過設定queryParam參數,根據屬性過濾查詢檔案。