doujiaoang69440 2015-03-03 12:02
浏览 11

如何从我的扩展程序向我导出一些数据?

I wrote an extension to get user's email address and current URL. I need to export this data out of extension and get them. I was searching for a way to do that but so far i was unable to do that. I was thinking about sending email through extension containing above information to a mail-address like "example@mysite.com" but i guessed there must be different way to export this data to my own side... However i will be so glad if someone show me a way to send data trough mail or any possible way.

please show me a way to do this

  • 写回答

1条回答 默认 最新

  • duanhongqiong9460 2015-03-03 12:30
    关注

    A reasonable way to do it is to have an API exposed somewhere on the web - a web server with an interface to a database - and then just use XHR to POST it to a URL, that your web server will transform into a query to store it.

    You should consider your users' privacy and always encrypt this sensitive data in transit with HTTPS.

    You could potentially use Google App Engine for that purpose, or any web hosting that provides database access. Be mindful of potential abuse and always validate inputs.

    This answer is of course very broad - but so is your question. I won't try to provide a detailed example.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题