Skip to content

Instantly share code, notes, and snippets.

@miftahafina
Last active September 15, 2022 04:31
Show Gist options
  • Save miftahafina/4d781edd256b0fc42c7f835bbdb6402c to your computer and use it in GitHub Desktop.
Save miftahafina/4d781edd256b0fc42c7f835bbdb6402c to your computer and use it in GitHub Desktop.
Random Jokes Bapack2 on your gsheet
function joke() {
let result = UrlFetchApp.fetch("https://jokes-bapack2-api.yuana.id/v1/text/random").getContentText();
let data = JSON.parse(result);
return data["data"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment