I've gotten the google file picker example to work. The example uses the photos view and that works fine. But when I change the view to e.g. google.picker.ViewId.DOCS. Iget a javascript error;

Uncaught SyntaxError: Unexpected token ILLEGAL 

I'm using the correct scope (https://www.googleapis.com/auth/drive) according to the documentation. What am I doing wrong.

没有正确的解决方案

其他提示

The problem is I was cut-and-pasting the view name from the developers guide. Unfortunately, the view names in the guide all contained a hidden character, the ZERO WIDTH SPACE. The character didn't appear in my editor, but was screwing up the javascript interpreter. I only spotted it in the chrome debugger tools as a red dot in my code

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top