mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
/dev/api: Add an explanation of modhashes to the overview.
This commit is contained in:
@@ -762,7 +762,7 @@ class VModhash(Validator):
|
||||
|
||||
def param_docs(self):
|
||||
return {
|
||||
self.param: 'a modhash',
|
||||
self.param: 'a [modhash](#modhashes)',
|
||||
}
|
||||
|
||||
class VVotehash(Validator):
|
||||
|
||||
@@ -5976,6 +5976,10 @@ body:not(.gold) .allminus-link {
|
||||
}
|
||||
|
||||
.api-help .contents .overview {
|
||||
h3 {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: .8em 0;
|
||||
}
|
||||
|
||||
@@ -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 <a
|
||||
href="http://en.wikipedia.org/wiki/CSRF">CSRF</a>. Modhashes can be
|
||||
obtained via the <a href="#GET_api_me.json">/api/me.json</a> call
|
||||
or in the <code>Listing</code> structures of several other API
|
||||
calls.</p>
|
||||
|
||||
<h3 id="fullnames">fullnames</h3>
|
||||
|
||||
<p>A fullname is a combination of a thing's type
|
||||
|
||||
Reference in New Issue
Block a user