API key to sync chrome bookmarks

866 views
Skip to first unread message

Changbin Shao

unread,
Dec 12, 2016, 4:55:28 AM12/12/16
to Chromium-dev, maxb...@chromium.org, j...@chormium.org, t...@chromium.org

Hi,


I'm developing an Android app which has a feature to import Chrome bookmarks from the system google account.

From Chromium's implementation of syncing bookmark, I found it requires an API key for the sync request, and using the default dummy token ("dummytoken") works perfectly on Android devices.
https://cs.chromium.org/chromium/src/components/sync/engine_impl/syncer_proto_util.cc?sq=package:chromium&dr=C&rcl=1481516319&l=374  

However, it looks that developers must set the API key to access Google API,
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/Qks4W0xLxqc/discussion


official page:

http://www.chromium.org/developers/how-tos/api-keys

 

My question is that, on Android, is it a correct way to set a dummy token as API key to the sync server? If that’s true, does the sync API has any request times restriction on dummy token and
can I distribute my app on Google play store with the dummy token?


Thanks!

Regards,
Changbin      

PhistucK

unread,
Dec 12, 2016, 5:44:35 AM12/12/16
to shaoch...@gmail.com, Chromium-dev, maxb...@chromium.org, j...@chormium.org, Tim Steele
I am not sure what dummytoken is, but in order to use Chrome Sync, you have to have a real API key, as far as I know.
However, you cannot use it for anything other than Chrome development, as the API Keys page says. And yes, it is rate limited.


PhistucK

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

Changbin Shao

unread,
Dec 12, 2016, 9:36:52 AM12/12/16
to PhistucK, Chromium-dev, maxb...@chromium.org, j...@chormium.org, Tim Steele
phistuck@, thanks for the comments!

The dummy token is just a string named "dummytoken" 

Do you mean even for a real API key, it's still rate limited, right? Is there any way to apply for an unlimited rate API key? Thanks!

PhistucK

unread,
Dec 12, 2016, 9:48:20 AM12/12/16
to Changbin Shao, Chromium-dev, Daniel Bratell
I think you have to contact Google as a partner or something like that.
Perhaps the Opera people can share their experience.


PhistucK

Michał Łowicki

unread,
Dec 12, 2016, 10:34:24 AM12/12/16
to phis...@gmail.com, Changbin Shao, Chromium-dev, Daniel Bratell
Opera has its own sync / auth servers.
--
BR,
Michał

PhistucK

unread,
Dec 12, 2016, 11:19:14 AM12/12/16
to Michał Łowicki, Changbin Shao, Chromium-dev, Daniel Bratell
Can Opera use the Chrome Web Store (for installing applications, they require a signed user, I think, though less worrying since Chrome applications will be limited to Chromebooks anyway)?


PhistucK
Reply all
Reply to author
Forward
0 new messages