
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ans-feishu-sdk
Advanced tools
$ npm install ans-feishu-sdk --save
import AnalysysAgent from "ans-feishu-sdk"
// 引入加密模块(非必须)
import AnalysysEncryption from 'ans-feishu-sdk/dist/AnalysysAgent_encryption.min.js';
AnalysysAgent.encrypt = AnalysysEncryption;
//初始化
AnalysysAgent.init({
appkey: '',
uploadURL: ''
})
参数 | 是否必须 | 类型 | 默认值 | 说明 |
---|---|---|---|---|
appkey | 是 | string | - | 在网站获取的AppKey |
uploadURL | 是 | string | - | 自定义上传地址 |
debugMode | 否 | number | 0 | 0: 关闭调试模式;1 - 开启调试模式,数据不入库;2 - 开启调试模式,数据入库 |
autoProfile | 否 | boolean | true | 设置是否追踪新用户的首次属性 |
encryptType | 否 | number | 0 | 设置是否对上传数据加密:0 - 对上传数据不加密(默认);1 - 对上传数据进行AES 128位ECB加密;2 对上传数据进行AES 128位CBC加密 |
allowTimeCheck | 否 | boolean | false | 设置是否开启时间校准 |
maxDiffTimeInterval | 否 | number | 30 | 设置最大时间校准分为:30s(默认) ,当设置的时间差值小于他,将不开启校准。否则将会进行时间校准。假如设置成为负值,将默认为 30s。 |
autoTrack | 否 | boolean | false | 设置是否开启全埋点,开启全埋点将会上报所有绑定(支持tab、longtab、longpress)事件,并上报$user_click 事件,设置data-content为采集的 $element_content、data-type为采集的 $element_type、data-name为采集的$element_name、id为采集的$element_id。不设置采集不到。不支持系统方法包括生命周期事件的上报,如果要采集tabbar切换,务必在注册Page的时候注册OnTabItemTap方法,否则采集不到。 |
autoCompleteURL | 否 | boolean | true | 设置是否采集完整URL,true - 采集URL包括参数;false - 采集URL不包括参数 |
autoPageViewDuration | 否 | boolean | false | 是否采集页面离开事件 |
通过以上步骤您即可验证SDK是否已经集成成功,更多Api使用方法参考:易观方舟 飞书 SDK 文档
请参见 Release及版本升级记录
禁止一切基于易观方舟 飞书 开源 SDK 的所有商业活动!
FAQs
This is the offical feishu SDK for Analysys.
We found that ans-feishu-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.