-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathsignup.html.erb
More file actions
77 lines (62 loc) · 3.37 KB
/
Copy pathsignup.html.erb
File metadata and controls
77 lines (62 loc) · 3.37 KB
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
76
77
---
title: API Key Signup
---
<h1>API Key Signup</h1>
<p>Use this form to request an API key to use our web services.</p>
<%= vite_javascript_tag "signup" %>
<div id="apidatagov_signup">Loading signup form...</div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var apiUmbrellaSignupOptions = {
// Pick a short, unique name to identify your site, like 'gsa-auctions'
// in this example.
registrationSource: 'nrel',
// Enter the API key you signed up for and specially configured for this
// API key signup embed form.
apiKey: 'wwBFDa7NMp0mt8xpl0E4rMaVgsoxVGZSVzzivzoU',
// Provide an example URL you want to show to users after they signup.
// This can be any API endpoint on your server, and you can use the
// special {{api_key}} variable to automatically substitute in the API
// key the user just signed up for.
exampleApiUrl: 'https://developer.nlr.gov/api/alt-fuel-stations/v1.json?fuel_type=E85,ELEC&state=CA&limit=2&api_key={{api_key}}',
// OPTIONAL: Provide extra content to display on the signup confirmation
// page. This will be displayed below the user's API key and the example
// API URL are shown. HTML is allowed. Defaults to ""
// signupConfirmationMessage: '',
// OPTIONAL: Provide a URL to your own contact page to link to for user
// support. Defaults to "https://api.data.gov/contact/"
contactUrl: 'https://developer.nlr.gov<%= url_for("contact.html") %>',
// OPTIONAL: Set to true to verify the user's email address by only
// sending them their API key via email, and not displaying it on the
// signup confirmation webpage. Defaults to false.
// verifyEmail: true,
// OPTIONAL: Set to false to disable sending a welcome email to the
// user after signing up. Defaults to true.
// sendWelcomeEmail: false,
// OPTIONAL: Provide the name of your developer site. This will appear
// in the subject of the welcome email as "Your {{siteName}} API key".
// Defaults to "api.data.gov".
siteName: 'NLR Developer Network',
// OPTIONAL: Provide a custom sender name for who the welcome email
// appears from. The actual address will be "noreply@api.data.gov", but
// this will change the name of the displayed sender in this fashion:
// "{{emailFromName}} <noreply@api.data.gov>". Defaults to "".
emailFromName: 'NLR Developer Network',
// OPTIONAL: Provide an extra input field to ask for the user's website.
// Defaults to false.
websiteInput: true,
// OPTIONAL: Provide an extra checkbox asking the user to agree to terms
// and conditions before signing up. Defaults to false.
termsCheckbox: true,
// OPTIONAL: If the terms & conditions checkbox is enabled, link to this
// URL for your API's terms & conditions. Defaults to "".
termsUrl: "<%= url_for("terms.html") %>#terms",
};
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var apiUmbrella = document.createElement('script'); apiUmbrella.type = 'text/javascript'; apiUmbrella.async = true;
apiUmbrella.src = 'https://api.data.gov/static/javascripts/signup_embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(apiUmbrella);
})();
</script>
<noscript>Please enable JavaScript to signup for a <a href="/">developer.nlr.gov</a> API key.</noscript>