suanmei / callapp-lib

🔥call app from h5(H5唤起客户端 )
2.5k stars 344 forks source link

请问能否给一份例子 #6

Closed ollieSk8 closed 6 years ago

ollieSk8 commented 6 years ago

请问能否给一份例子,实例参数是如何填写的?能否给个完整的例子,文档看的一知半解,谢谢。

suanmei commented 6 years ago
const option = {
  protocol: 'ykshortvideo',
  outChain: {
    protocal: 'ykshortvideo',
    path: 'temporary',
    key: 'url',
  },
  intent: {
    package: 'com.youku.shortvideo',
    scheme: 'ykshortvideo',
  },
  universal: {
    host: 'flash-link.youku.com',
    pathKey: 'action',
  },
  appstore: 'https://itunes.apple.com/cn/app/id1383186862',
  yingyongbao: '//a.app.qq.com/o/simple.jsp?pkgname=com.youku.shortvideo',
  fallback: 'https://dianliuegg.youku.com/service/download',
  timeout: 2000,
};
const lib = new CallappLib(option);
ollieSk8 commented 6 years ago

thanks!