Skip to content

Instantly share code, notes, and snippets.

@erikcorry
Created August 26, 2022 08:24
Show Gist options
  • Save erikcorry/23d017e16f6606db44238668f94951d6 to your computer and use it in GitHub Desktop.
Save erikcorry/23d017e16f6606db44238668f94951d6 to your computer and use it in GitHub Desktop.
// Copyright (C) 2021 Toitware ApS.
// Use of this source code is governed by a Zero-Clause BSD license that can
// be found in the EXAMPLES_LICENSE file.
import http
import net
import net.x509
import certificate_roots
main:
network := net.open
client := http.Client.tls network
--root_certificates=[certificate_roots.GLOBALSIGN_ROOT_CA,
certificate_roots.GTS_ROOT_R1]
response := client.get "script.google.com" "/AKfycbw.....7vLR/exec?email=jon.doe@gmail.com&thresh=50&id=Sheet1&Temperature=123&Pressure=234"
while data := response.body.read:
print data.to_string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment