/dev/api: Add an explanation of modhashes to the overview.

This commit is contained in:
Neil Williams
2013-05-08 22:10:50 -07:00
parent d1ae49b4d9
commit 6ba84d7ab9
3 changed files with 13 additions and 1 deletions

View File

@@ -762,7 +762,7 @@ class VModhash(Validator):
def param_docs(self):
return {
self.param: 'a modhash',
self.param: 'a [modhash](#modhashes)',
}
class VVotehash(Validator):

View File

@@ -5976,6 +5976,10 @@ body:not(.gold) .allminus-link {
}
.api-help .contents .overview {
h3 {
margin-top: 1.5em;
}
p {
margin: .8em 0;
}

View File

@@ -132,6 +132,14 @@
<div class="section overview">
<h2>overview</h2>
<h3 id="modhashes">modhashes</h3>
<p>A modhash is a token that the reddit API requires to help prevent&#32;<a
href="http://en.wikipedia.org/wiki/CSRF">CSRF</a>. Modhashes can be
obtained via the&#32;<a href="#GET_api_me.json">/api/me.json</a>&#32;call
or in the&#32;<code>Listing</code>&#32;structures of several other API
calls.</p>
<h3 id="fullnames">fullnames</h3>
<p>A fullname is a combination of a thing's type