Using Base Elements to Connect to Google Calendar API

Discussion created by mollyhb on Aug 12, 2016
Latest reply on Aug 13, 2016 by David Moyer

Hi. I am trying to connect my filemaker solution to a google calendar. I want to be able to add events for the due dates of the projects we are working on but I have not been able to figure it out. I have an api key registered and I have downloaded BaseElements. This is what I am trying to do to get it to work


Set Variable[$data; Value: "{" & BE_JSON_Encode("end") & "{" & BE_JSON_Encode("date"; "2016-08-16") &  "}," & BE_JSON_Encode("start") & "{" & BE_JSON_Encode("date"; "2016-08-16")&  "},"& BE_JSON_Encode("summary"; "Invoice") & "}"]


Set Variable[$URL; Value:BE_HTTP_POST ( "httppost://[my token]"; $data)]


This is what google says is the correct format for the api request:






"end": {



  "date": "2016-08-16"




"start": {



  "date": "2016-08-16"



"summary": "Invoice"



What I am trying doesn't work. Does anyone know what I am doing wrong? Thanks!