google-calendar-api

Can you negate search for extended properties in Event.list of google calendar api?


I am looking for a way to retrieve all events which do not have a specific sharedExtendedProperty with the Events.list API.

Some of my events have the sharedExtendedProperty test and I was wondering if I can get all events which do not have this property at all. (I dont care about the value, just the key)

According to the docs you can AND and OR different properties but it sais nothing about negating them.

I tried !propertyName=testbut this did not work.


Solution

  • The API does not accept not filtering, if you want to do this you have to retrieve all and filter locally.