I tried to do it using fphttpclient, but I was unsuccessful.
Att.
There should not be a problem with fphttpclient (that package even contains an example: the calendar)
Can you show us in a brief but complete example where your problems are?
I know of several problems that often show up:
- forgetting to set
allowredirects- using old OpenSSL versions OR forgetting to add the OpenSSL units at all. (the latter involves no programming, just adding) Is your key really valid?
- forgetting to have a proper private
key and a Google account.
Again: the calendar example is a very good and working demo and serves as documentation to avoid most of the above issues.
Extra note: use TLS 1.1 or higher, TLS 1.2 or higher preferred. Google does not accept legacy protocols or encryption.(as all of the major providers)
And of course, set it up using the component properties, not just the JSON you provided.