-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi-usage.php
More file actions
71 lines (54 loc) · 3.18 KB
/
Copy pathapi-usage.php
File metadata and controls
71 lines (54 loc) · 3.18 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
<?php
// Initialize
$guest = true;
include_once $_SERVER["DOCUMENT_ROOT"] . '/classes/initialize.php';
// HTML Head
$htmlHead = new htmlHead('API Usage');
echo $htmlHead->html;
?>
<style>
h2 {
margin-top: 4rem;
}
h3 {
margin-top: 3rem;
}
h4 {
margin-top: 2rem;
color:#4b555e;
}
</style>
<body>
<?php
// Navbar
echo $nav->navbar('');
?>
<div class="cb-page cb-page--narrow">
<h1>API Usage</h1>
<p class="lead">The Catalog.beer Application Programming Interface (API) has been designed to make it easy for you to access information about Brewers and their beers and tasting rooms.</p>
<p>When it comes to using the API, anyone is welcome to use it; all you have to do is <a href="/signup">create an account</a> and verify your email address. If you have questions about how to use the API, refer to our <a href="/api-docs">API Documentation</a> or <a href="/contact">drop us a line</a>.</p>
<h2>Pricing</h2>
<p>Catalog.beer was created to enable anyone to access brewery and beer information. Every account includes <strong>1,000 free API requests per month</strong>, and usage past the free tier is billed at <strong>$1 per 1,000 requests</strong>. Full details—including the monthly spend cap and how invoicing works—are on our <a href="/api-pricing">API Pricing</a> page.</p>
<h2>Basic Rules</h2>
<h3>Creative Commons License</h3>
<p>All the content that is accessible via the API is licensed under a <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International license (CC BY 4.0)</a>. This excludes a Brewery’s rights in its name, brand(s), and trademarks. What does that mean?</p>
<h4>You are free to</h4>
<ul>
<li><strong>Share</strong> — copy and redistribute the material in any medium or format</li>
<li><strong>Adapt</strong> — remix, transform, and build upon the material
for any purpose, even commercially.</li>
</ul>
<h4>What’s required of you?</h4>
<p>You must give appropriate credit to Catalog.beer, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.</p>
<p>For example, if you reproduce the description for <a href="375289f8-6cc5-2d38-3ce7-73ab50b8dff4">Long Beach Beer Lab</a>, a brewer, you should include an attribution like this:</p>
<p>“<a href="375289f8-6cc5-2d38-3ce7-73ab50b8dff4">Long Beach Beer Lab</a>” by <a href="https://catalog.beer">Catalog.beer</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></p>
<h3>Use the API Responsibly</h3>
<p>A few guidelines and notes:</p>
<ul>
<li>We may delete old accounts (more than a year old) without notice if we see that you haven’t used Catalog.beer in more than a year.</li>
<li>If you have questions, ask them. We respond quickly to messages sent via our website.</li>
</ul>
</div>
<?php echo $nav->footer(); ?>
</body>
</html>