-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (67 loc) · 3.63 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<title>Webhook Amp</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FONT
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<!-- CSS
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/barebones.css">
<link rel="stylesheet" href="css/style.css">
<!-- Favicon
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="icon" type="image/png" href="images/favicon-16.png">
</head>
<body>
<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<div class="grid-container halves">
<div>
<h1>Webhook Amp</h1>
<p>
Example URL:<br>
https://2rygsn9pzc.execute-api.us-east-1.amazonaws.com/dev/amp?url=http://www.google.com&url=http://bing.com
</p>
<h4>Send the same singular webhook request to multiple endpoints with this amplify service</h4>
<p>
This service accepts multiple valid URLS with a key of 'url' in the query string to build the list of endpoints to forward the request too.
Url Parser uses <a href="https://url.spec.whatwg.org/#urls">this standard</a> so please ensure your urls are compliant.
Example query string would look like /amp?url=http://www.google.com&url=http://bing.com
You can use this endpoint as an example:
'https://2rygsn9pzc.execute-api.us-east-1.amazonaws.com/dev/amp'
Please note that all your webhook data will pass through this service, so if security or confidentiality are important
I suggest you clone the <a href="https://github.com/krysttian/webhook-amp">Repo</a> and deploy yourself using serverless deploy
</p>
</div>
<div>
<h3> URL Generator</h3>
<p>
the below text area will allow you to insert multiple URL's (one per line please) and will generate a URL for you using the example service at the URL:
'https://2rygsn9pzc.execute-api.us-east-1.amazonaws.com/dev/amp'
</p>
<label for="#urlTextArea">Please place one URL per line into the text area, pressing enter to start a new line</label>
<span>
<textarea id='urlTextArea'></textarea>
</span>
<span>
<pre id="codebox">
</pre>
<!-- <button id="copyToClipBoard">Copy to ClipBoard</button> -->
</span>
</div>
</div>
<!-- End Document
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<script src="js/index.js" type="text/javascript"></script>
</body>
</html>