Calendar API仅显示忙/闲

时间:2016-03-31 13:31:29

标签: api calendar

我正在使用Calendar API并已成功从中检索数据。但是,我目前只获得忙/闲信息。如果我将公共日历共享设置更改为“查看所有活动详细信息”,我可以看到所有信息。我不希望公众看到这些信息,而只是API用户。

有没有办法设置它,所以只有API给出这个详细信息而不公开?

1 个答案:

答案 0 :(得分:0)

您是否使用OAuth令牌登录API?是否使用Forwarding debugger port 8824 Detecting existing process [AndroidRuntime] Shutting down VM [AndroidRuntime] FATAL EXCEPTION: main [AndroidRuntime] Process: AnXinMe.RemoteTv.Droid, PID: 21244 [AndroidRuntime] java.lang.RuntimeException: Unable to instantiate application mono.android.app.Application: java.lang.ClassNotFoundException: Didn't find class "mono.android.app.Application" on path: DexPathList[[zip file "/data/app/AnXinMe.RemoteTv.Droid-1.apk"],nativeLibraryDirectories=[/data/app-lib/AnXinMe.RemoteTv.Droid-1, /vendor/lib, /system/lib]] [AndroidRuntime] at android.app.LoadedApk.makeApplication(LoadedApk.java:509) [AndroidRuntime] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4427) [AndroidRuntime] at android.app.ActivityThread.access$1500(ActivityThread.java:147) [AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1271) [AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:102) [AndroidRuntime] at android.os.Looper.loop(Looper.java:136) [AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:5135) [AndroidRuntime] at java.lang.reflect.Method.invokeNative(Native Method) [AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:515) [AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795) [AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611) [AndroidRuntime] at dalvik.system.NativeStart.main(Native Method) [AndroidRuntime] Caused by: java.lang.ClassNotFoundException: Didn't find class "mono.android.app.Application" on path: DexPathList[[zip file "/data/app/AnXinMe.RemoteTv.Droid-1.apk"],nativeLibraryDirectories=[/data/app-lib/AnXinMe.RemoteTv.Droid-1, /vendor/lib, /system/lib]] [AndroidRuntime] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) [AndroidRuntime] at java.lang.ClassLoader.loadClass(ClassLoader.java:497) [AndroidRuntime] at java.lang.ClassLoader.loadClass(ClassLoader.java:457) [AndroidRuntime] at android.app.Instrumentation.newApplication(Instrumentation.java:975) [AndroidRuntime] at android.app.LoadedApk.makeApplication(LoadedApk.java:504) [AndroidRuntime] ... 11 more [Process] Sending signal. PID: 21244 SIG: 9 范围或https://www.googleapis.com/auth/calendar.readonly范围创建了OAuth?

以下是使用日历授权的API详细信息 - https://developers.google.com/google-apps/calendar/auth