http status code 403 - Google CardDAV API 403 Error -


i've been trying use google's carddav apis (and i've gotten caldav access working). unfortunately, keep getting 403 error when trying discover user's current-user-principal. fwiw, have gone google's developer console , set client information , seems work fine caldav access.

here snippet of http traffic carddav:

propfind https://www.googleapis.com:443/.well-known/carddav/ depth: 0 content-type: text/xml brief: t authorization: bearer ya29.1.aadtn_ud1cvkpiqpsyb4hzokvxt4l5kpfxu3gucmtfjmjj9t0pzzqx1i3xx748y <?xml version="1.0" encoding="utf-8"?> <x0:propfind xmlns:x0="dav:">   <x0:prop>     <x0:current-user-principal />     <x0:principal-url />     <x0:resourcetype />   </x0:prop> </x0:propfind>  vvvvvvvvvvvv  http propfind status(403) forbidden <?xml version="1.0" encoding="utf-8"?> <errors xmlns="http://schemas.google.com/g/2005">  <error>   <domain>gdata</domain>   <code>insufficientpermissions</code>   <internalreason>insufficient permission</internalreason>  </error> </errors> 

if has insight why might happening, appreciated.

red

you need request access google carddav api, i.e. https://www.googleapis.com/auth/carddav

i fear still might not enough rights, because permission (and permission https://www.googleapis.com/auth/contacts) empty reports addressbook. that's strange. after putting contact client.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -