Closed QiMeng7m closed 1 year ago
使用client.bitable.appTableRecord.create click to debug。调试平台的接口是/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records 但是实际页面请求https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal
curl 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \ -H 'sec-ch-ua: "Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"' \ -H 'Accept: application/json, text/plain, /' \ -H 'Content-Type: application/json' \ -H 'Referer: http://127.0.0.1:5173/' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '{"app_id":"app id","app_secret":"app secret"}' \ --compressed
在请求api前,sdk内部会先去调用https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal接口获取token,然后携带着这个token请求api
使用client.bitable.appTableRecord.create click to debug。调试平台的接口是/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records 但是实际页面请求https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal
curl 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \ -H 'sec-ch-ua: "Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"' \ -H 'Accept: application/json, text/plain, /' \ -H 'Content-Type: application/json' \ -H 'Referer: http://127.0.0.1:5173/' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '{"app_id":"app id","app_secret":"app secret"}' \ --compressed