Skip to content

Instantly share code, notes, and snippets.

@webstrand
webstrand / gist:2df39c37048a3a114ba3b5b0f40817d1
Created September 30, 2020 20:01 — forked from gsainio/gist:6322375
Sample perl code to use service accounts and oauth2 with Google's Admin SDK API.
#!/usr/public/bin/perl -w
use strict;
use JSON;
use JSON::WebToken;
use LWP::UserAgent;
use HTML::Entities;
my $private_key_string = q[-----BEGIN PRIVATE KEY-----