Chrome扩展与云存储 [英] chrome extension with cloud storage

查看:165
本文介绍了Chrome扩展与云存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个小型Chrome扩展程序,并希望将其数据保持在线状态。

我需要一个免费且非常小的(每用户<1MB)云托管提供商,该提供商拥有无痛的身份验证。
理想情况下,我只需要一个Google API,它可以执行localStorage,但是在云中,而且每个用户名都是不同的。

解决方案为什么不能使用Google App Engine?该API非常易于使用。或者使用与每个用户相关联的其他Google服务,例如Google文档。这就是Google Chrome同步存储通过文档在浏览器中同步的书签的方式。

关于localStorage,localStorage是JavaScript(客户端)的关键值存储API。如果你想在外部在线存储你的扩展的localStorage,你可以迭代你的存储密钥/值并通过联系一些外部(不管你使用的API)服务来存储它们。每次你的扩展开始时(在background.html页面),检索它们。



尽管你为什么要这么做?谷歌浏览器同步,默认同步所有这些信息。


I'm making a small Chrome extension and would like to keep its data online.
I need a free and very small(<1MB per user) cloud hosting provider that has painless authentication.
Ideally, I'd just like a Google API that does localStorage, but in the cloud and different for each username.

解决方案

Why can't you use Google App Engine? The API is pretty easy to use. Or use other Google services tied to each individual user such as Google Docs. That is how Google Chrome Sync stores bookmarks that are synchronized in your browser through Docs.

Concerning localStorage, localStorage is a key value storage API for JavaScript (Client Side). If you want to store your extension's localStorage externally online, you can iterate your storage keys/values and store them through contacting some external (whatever API you use) service. And retrieve them every time your extension starts (in background.html page).

Why would you do that though? Google Chrome Sync, synchronizes all those information by default.

这篇关于Chrome扩展与云存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆