-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwww.reddit.com.xml
2211 lines (1754 loc) · 99.3 KB
/
www.reddit.com.xml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<application xmlns="http://wadl.dev.java.net/2009/02"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:apigee="http://api.apigee.com/wadl/2010/07/"
xsi:schemaLocation="http://wadl.dev.java.net/2009/02 http://apigee.com/schemas/wadl-schema.xsd http://api.apigee.com/wadl/2010/07/ http://apigee.com/schemas/apigee-wadl-extensions.xsd">
<resources base="http://www.reddit.com/">
<!-- Link -->
<resource path="by_id/{fullname}.{extension}">
<param name="fullname" type="xsd:string" style="template" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[A base-36 id of the form /t[0-9]+_[a-z0-9]+/ (e.g. t3_6nw57) that reddit associates with every Thing. In the example, the type prefix t3_ specifies that the fullname is for a Link, and the id 6nw57 specifies the Link's id36. (Note: the numbers according to id type are not constant, and may vary between reddit installations.)]]>
</doc>
</param>
<param name="extension" type="xsd:string" style="template" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Format of the data being returned. Accepted values: json (JSON), rss (RSS feed), xml (RSS feed)]]>
</doc>
</param>
<method id="link_by_fullname" name="GET" apigee:displayName="by_id/{fullname}.{extension}">
<apigee:tags>
<apigee:tag primary="true">Link</apigee:tag>
</apigee:tags>
<apigee:authentication required="false"/>
<apigee:example url="by_id/{fullname}.json"/>
<doc title="link_by_fullname" apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Returns information about a link given its fullname.]]>
</doc>
<response>
<representation mediaType="application/json"/>
<representation mediaType="application/rss+xml"/>
</response>
</method>
</resource>
<resource path="comments/{id36}.{extension}">
<param name="id36" type="xsd:string" style="template" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The second part of the fullname, a base-36 id of the form /t[0-9]+_[a-z0-9]+/ (e.g. t3_6nw57) that reddit associates with every Thing. In the example, the type prefix t3_ specifies that the fullname is for a Link, and the id 6nw57 specifies the Link's id36. (Note: the numbers according to id type are not constant, and may vary between reddit installations.)]]>
</doc>
</param>
<param name="extension" type="xsd:string" style="template" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Format of the data being returned. Accepted values: json (JSON), rss (RSS feed), xml (RSS feed)]]>
</doc>
</param>
<method id="link_by_fullname_comments" name="GET" apigee:displayName="comments/{id36}.{extension}">
<apigee:tags>
<apigee:tag primary="true">Link</apigee:tag>
</apigee:tags>
<apigee:authentication required="false"/>
<apigee:example url="comments/{id36}.json"/>
<doc title="link_by_fullname_comments" apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Returns information about a link, with comments, given its id36.]]>
</doc>
<response>
<representation mediaType="application/json"/>
<representation mediaType="application/rss+xml"/>
</response>
</method>
</resource>
<resource path="api/info.{extension}">
<param name="extension" type="xsd:string" style="template" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Format of the data being returned. Accepted values: json (JSON), xml (XML)]]>
</doc>
</param>
<method id="get_info" name="GET" apigee:displayName="api/info">
<apigee:tags>
<apigee:tag primary="true">Link</apigee:tag>
</apigee:tags>
<apigee:authentication required="false"/>
<apigee:example url="api/info.json"/>
<doc title="get_info" apigee:url="http://github.com/reddit/reddit/wiki/API%3A-info.json">
<![CDATA[Returns information about a URL's submissions.]]>
</doc>
<request>
<param name="url" type="xsd:anyURI" style="query" required="false">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Format: a URL. Specify either this or id.]]>
</doc>
</param>
<param name="id" type="xsd:string" style="query" required="false">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Format: a link ID. Specify either this or url.]]>
</doc>
</param>
<param name="limit" type="xsd:integer" style="query" required="false">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Presumably, limits the number of links returned. Format: a number.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/expando">
<method id="post_expando" name="POST" apigee:displayName="api/expando">
<apigee:tags>
<apigee:tag primary="true">Link</apigee:tag>
</apigee:tags>
<apigee:authentication required="false"/>
<apigee:example url="api/expando"/>
<doc title="post_expando" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Returns expanded link content.]]>
</doc>
<request>
<param name="link_id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The link to expand.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="text/html"/>
</response>
</method>
</resource>
<!-- User -->
<resource path="api/login/{username}">
<param name="username" type="xsd:string" style="template" required="true">
<doc apigee:url="https://github.com/reddit/reddit/wiki/API%3A-login">
<![CDATA[The username to log in as.]]>
</doc>
</param>
<method id="login" name="POST" apigee:displayName="api/login">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="false"/>
<apigee:example url="api/login/{username}"/>
<doc title="login" apigee:url="https://github.com/reddit/reddit/wiki/API%3A-login">
<![CDATA[Logs a user in. Returns a SetCookie line in the HTTP header, identifying the new session.]]>
</doc>
<request>
<param name="user" type="xsd:string" style="query" required="true">
<doc apigee:url="https://github.com/reddit/reddit/wiki/API%3A-login">
<![CDATA[The username to authenticate as. This is redundant, but required.]]>
</doc>
</param>
<param name="passwd" type="xsd:string" style="query" required="true">
<doc apigee:url="https://github.com/reddit/reddit/wiki/API%3A-login">
<![CDATA[The plain-text password for the account.]]>
</doc>
</param>
<param name="api_type" type="xsd:string" style="query" required="true" fixed="json" default="json">
<doc apigee:url="https://github.com/reddit/reddit/wiki/API%3A-login">
<![CDATA[Must be "json" for the style of auth used in this documentation.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="user/{username}/about.json">
<param name="username" type="xsd:string" style="template" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The name of the user whose "about" page to retrieve.]]>
</doc>
</param>
<method id="user_about" name="GET" apigee:displayName="user/{username}/about.json">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="false"/>
<apigee:example url="user/{username}/about.json"/>
<doc title="user_about" apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Retrieves information from a user's "about" page, including karma totals.]]>
</doc>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/me.json">
<method id="get_me" name="GET" apigee:displayName="api/me.json">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/me.json"/>
<doc title="get_me" apigee:url="http://github.com/reddit/reddit/wiki/API%3A-me.json">
<![CDATA[Returns information about the logged-in user.]]>
</doc>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="reddits/mine.{extension}">
<param name="extension" type="xsd:string" style="template" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Format of the data being returned. Accepted values: json (JSON), xml (XML)]]>
</doc>
</param>
<method id="get_mine" name="GET" apigee:displayName="reddits/mine.{extension}">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="reddits/mine.json"/>
<doc title="get_mine" apigee:url="http://github.com/reddit/reddit/wiki/API%3A-mine.json">
<![CDATA[Returns information about the subreddits the currently logged-in user subscribes to.]]>
</doc>
<response>
<representation mediaType="application/json"/>
<representation mediaType="application/xml"/>
</response>
</method>
</resource>
<resource path="api/register">
<method id="post_register" name="POST" apigee:displayName="api/register">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/register"/>
<doc title="post_register" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Registers a new user.]]>
</doc>
<request>
<param name="user" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The username to register.]]>
</doc>
</param>
<param name="email" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The user's email address.]]>
</doc>
</param>
<param name="passwd" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The user's password.]]>
</doc>
</param>
<param name="passwd2" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The user's password, again. Has to be the same as "passwd".]]>
</doc>
</param>
<param name="dest" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Destination?]]>
</doc>
</param>
<param name="rem" type="xsd:boolean" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Format: boolean]]>
</doc>
</param>
<param name="reason" type="xsd:boolean" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Possible accepted values: redirect, subscribe]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/delete_user">
<method id="post_delete_user" name="POST" apigee:displayName="api/delete_user">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/delete_user"/>
<doc title="post_delete_user" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Permanently deletes the logged-in user.]]>
</doc>
<request>
<param name="areyousure1" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Verification. All three parameters must be "yes" to delete user successfully. Accepted values: yes, no]]>
</doc>
</param>
<param name="areyousure2" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Verification. All three parameters must be "yes" to delete user successfully. Accepted values: yes, no]]>
</doc>
</param>
<param name="areyousure2" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Verification. All three parameters must be "yes" to delete user successfully. Accepted values: yes, no]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/leavemoderator">
<method id="post_leavemoderator" name="POST" apigee:displayName="api/leavemoderator">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/leavemoderator"/>
<doc title="post_leavemoderator" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Handles self-removal as moderator from a subreddit as rendered in the subreddit sidebox on any of that subreddit's pages.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[ID?]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/leavecontributor">
<method id="post_leavecontributor" name="POST" apigee:displayName="api/leavecontributor">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/leavecontributor"/>
<doc title="post_leavecontributor" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Handles self-removal as contributor from a subreddit as rendered in the subreddit sidebox on any of that subreddit's pages.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[ID?]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/password">
<method id="post_password" name="POST" apigee:displayName="api/password">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/password"/>
<doc title="post_password" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Sends a forgot-password message to an account holder.]]>
</doc>
<request>
<param name="name" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[A username with a valid email address.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/resetpassword">
<method id="post_resetpassword" name="POST" apigee:displayName="api/resetpassword">
<apigee:tags>
<apigee:tag primary="true">User</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/resetpassword"/>
<doc title="post_resetpassword" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Resets a user's password.]]>
</doc>
<request>
<param name="reset" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Cache key?]]>
</doc>
</param>
<param name="passwd" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The new password.]]>
</doc>
</param>
<param name="passwd2" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The new password, again. Must be the same as "passwd".]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<!-- Story -->
<resource path="api/submit">
<method id="submit" name="POST" apigee:displayName="api/submit">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/submit"/>
<doc title="submit" apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Submits a link/story. For submitting to work, the reddit_session cookie needs to be present in the request, or the answer to a CAPTCHA must be supplied.]]>
</doc>
<request>
<param name="url" type="xsd:string" style="query" required="false">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The link to submit, if the "kind" parameter is "link". Required if the story is a regular post.]]>
</doc>
</param>
<param name="text" type="xsd:string" style="query" required="false">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The text to submit, if the "kind" parameter is "self". Required if the story is a self post.]]>
</doc>
</param>
<param name="kind" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Accepted values: link, self.]]>
</doc>
</param>
<param name="sr" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The subreddit to submit the link to.]]>
</doc>
</param>
<param name="title" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The text to appear as a link to the new story.]]>
</doc>
</param>
<param name="r" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The subreddit, again. (?)]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/share">
<method id="share" name="POST" apigee:displayName="api/share">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/share"/>
<doc title="share" apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Shares a link/story via email to a friend on the logged-in user's behalf. For sharing to work, the reddit_session cookie needs to be present in the request, or the answer to a CAPTCHA must be supplied.]]>
</doc>
<request>
<param name="parent" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The thing you want to share. See API docs for more details about things.]]>
</doc>
</param>
<param name="share_from" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The name of the person who is sending the message. Maximum 100 characters.]]>
</doc>
</param>
<param name="replyto" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The email address of the person who is sending the message.]]>
</doc>
</param>
<param name="share_to" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The email address of the recepient of the message.]]>
</doc>
</param>
<param name="message" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[The text that precedes the link to the story in the message. Maximum 1000 characters.]]>
</doc>
</param>
<param name="renderstyle" type="xsd:string" style="query" required="false">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API">
<![CDATA[Presumably, the email format. Known accepted value: html]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/vote">
<method id="post_vote" name="POST" apigee:displayName="api/vote">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/vote"/>
<doc title="post_vote" apigee:url="http://github.com/reddit/reddit/wiki/API%3A-vote">
<![CDATA[Casts or rescinds a vote on a story/comment.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API%3A-vote">
<![CDATA[The fullname of the thing you are voting for.]]>
</doc>
</param>
<param name="dir" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/wiki/API%3A-vote">
<![CDATA[The vote you are going to cast. Use 1 to vote up, 0 to rescind a vote, or -1 to vote down. Note that previous votes are not additive. If the user previously voted 1, voting -1 will change the vote to -1, not 0. Accepted values: -1 (downvote), 0 (neutral-vote), 1 (upvote)]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/fetch_title">
<method id="post_fetch_title" name="POST" apigee:displayName="api/fetch_title">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/fetch_title"/>
<doc title="post_fetch_title" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Returns the title for a story, given its URL.]]>
</doc>
<request>
<param name="url" type="xsd:anyURL" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The URL to fetch the title of.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/marknsfw">
<method id="post_marknsfw" name="POST" apigee:displayName="api/marknsfw">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/marknsfw"/>
<doc title="post_marknsfw" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Marks a thing as NSFW.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The fullname of the thing to mark.]]>
</doc>
</param>
</request>
</method>
</resource>
<resource path="api/unmarknsfw">
<method id="post_unmarknsfw" name="POST" apigee:displayName="api/unmarknsfw">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/unmarknsfw"/>
<doc title="post_unmarknsfw" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Marks a thing as SFW (unmarks as NSFW)]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The fullname of the thing to unmark.]]>
</doc>
</param>
</request>
</method>
</resource>
<resource path="api/save">
<method id="post_save" name="POST" apigee:displayName="api/save">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/save"/>
<doc title="post_save" apigee:url="https://github.com/reddit/reddit/wiki/API%3A-save">
<![CDATA[Saves a post.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="https://github.com/reddit/reddit/wiki/API%3A-save">
<![CDATA[The fullname of the post to save.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/unsave">
<method id="post_unsave" name="POST" apigee:displayName="api/unsave">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/unsave"/>
<doc title="post_unsave" apigee:url="https://github.com/reddit/reddit/wiki/API%3A-unsave">
<![CDATA[Unsaves a post.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="https://github.com/reddit/reddit/wiki/API%3A-unsave">
<![CDATA[The fullname of the post to unsave.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/hide">
<method id="post_hide" name="POST" apigee:displayName="api/hide">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/hide"/>
<doc title="post_hide" apigee:url="https://github.com/reddit/reddit/wiki/API%3A-hide">
<![CDATA[Hides a post.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="https://github.com/reddit/reddit/wiki/API%3A-hide">
<![CDATA[The fullname of the post to hide.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/unhide">
<method id="post_unhide" name="POST" apigee:displayName="api/unhide">
<apigee:tags>
<apigee:tag primary="true">Story</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/unhide"/>
<doc title="post_unhide" apigee:url="https://github.com/reddit/reddit/wiki/API%3A-unhide">
<![CDATA[Unhides a post.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="https://github.com/reddit/reddit/wiki/API%3A-unhide">
<![CDATA[The fullname of the post to unhide.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<!-- Thing -->
<resource path="api/del">
<method id="post_del" name="POST" apigee:displayName="api/del">
<apigee:tags>
<apigee:tag primary="true">Thing</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/del"/>
<doc title="post_del" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Deletes things.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The fullname of the thing to delete.]]>
</doc>
</param>
</request>
</method>
</resource>
<resource path="api/editusertext">
<method id="post_editusertext" name="POST" apigee:displayName="api/editusertext">
<apigee:tags>
<apigee:tag primary="true">Thing</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/editusertext"/>
<doc title="post_editusertext" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Updates the user text on a thing.]]>
</doc>
<request>
<param name="thing_id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The fullname of the thing to update.]]>
</doc>
</param>
<param name="text" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The new text.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="api/remove">
<method id="post_remove" name="POST" apigee:displayName="api/remove">
<apigee:tags>
<apigee:tag primary="true">Thing</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/remove"/>
<doc title="post_remove" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Removes a thing.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The thing to remove.]]>
</doc>
</param>
</request>
</method>
</resource>
<resource path="api/approve">
<method id="post_approve" name="POST" apigee:displayName="api/approve">
<apigee:tags>
<apigee:tag primary="true">Thing</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/approve"/>
<doc title="post_approve" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Approves a thing.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The thing to approve.]]>
</doc>
</param>
</request>
</method>
</resource>
<resource path="api/distinguish">
<method id="post_distinguish" name="POST" apigee:displayName="api/distinguish">
<apigee:tags>
<apigee:tag primary="true">Thing</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/distinguish"/>
<doc title="post_distinguish" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Distinguishes a thing.]]>
</doc>
<request>
<param name="id" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[The thing to distinguish.]]>
</doc>
</param>
<param name="how" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Accepted values: yes, no, admin.]]>
</doc>
</param>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<!-- Message -->
<resource path="api/compose">
<method id="post_compose" name="POST" apigee:displayName="api/compose">
<apigee:tags>
<apigee:tag primary="true">Message</apigee:tag>
</apigee:tags>
<apigee:authentication required="true"/>
<apigee:example url="api/compose"/>
<doc title="post_compose" apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">
<![CDATA[Handles message composition under /message/compose]]>
</doc>
<request>
<param name="to" type="xsd:string" style="query" required="true">
<doc apigee:url="http://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py">