Skip to content

jswank/webscript.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jswank/webscript.io

Scripts and libraries for https://www.webscript.io.

reCAPTCHA

Validate a recaptcha. See the reCaptcha Developer Docs for setup instructions.

In HTML:

<script src='https://www.google.com/recaptcha/api.js'></script>

<form action="https://site.webscript.io/script">
  <div class="g-recaptcha" data-sitekey="your-site-key"></div>
  <input type="submit" value="Submit">
</form>

In webscript.io:

local RECAPTCHA_KEY = 'your-secret-key'

local recaptcha = require('jswank/webscript.io/recaptcha.lua') 

if recaptcha.validate(RECAPTCHA_KEY,request) then
  return 200, 'Validated!'
else
  return 400, 'Not validated!
end

nodeping-to-datadog

Use as a webhook notification handler for Nodeping, and forward to Datadog as an event.

local api_key="datadog_api_key"

local bridge = require('jswank/webscript.io/nodeping-to-datadog.lua') 

bridge.handle(api_key,request)

About

webscript.io libraries & scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages