-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (117 loc) · 3.66 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/roboto-font@0.1.0/css/fonts.min.css">
<title>CodeChef API</title>
</head>
<body>
<h1>Codechef API by Nikhil ( juuz0 )</h1>
<div id="introo">
Send a HTTP-request to <code>/{method}</code>. Each method requires -
<ul id="intro">
<li> <b>handle</b> - for account name </li>
<li> <b>count [optional] </b>- to limit the results (not available in user.info)</li>
</ul>
<br> and returns a JSON-object containing -
<ul id="intro">
<li> <b>status</b> - OK/FAILED </li>
<li> <b>res (array) </b> - the required result in JSON-format enclosed in an array </li>
</ul>
</div>
<hr>
<div class="main">
<div class="elem">
<p class="command"><b>user.info</b></p>
<p>Basic information about the user - rating, username, country, state, city, institution, profession</p>
<p>Usage(Example) - /user.info?handle=account_name ( <a href="/user.info?handle=gennady.korotkevich">/user.info?handle=gennady.korotkevich</a> )</p>
</div>
<hr>
<div class="elem">
<p class="command"><b>user.subs</b></p>
<p>Submissions by the user</p>
<p>Usage(Example) - /user.subs?handle=account_name&count=number ( <a href="/user.subs?handle=gennady.korotkevich&count=25">/user.subs?handle=gennady.korotkevich&count=25</a> ) </p>
</div>
<hr>
</div>
<footer>
<a href="https://github.com/juuz0/cc-api" class='hideTextDeco' target="_blank"> Find on GitHub <i class="fab fa-github" style="margin: 5px;"></i> </a>
</footer>
<style>
li{
display: inline;
}
li:nth-child(2){
margin-left: 20%;
}
ul{
text-align: center;
}
#introo{
padding: 15px;
}
body{
border:0;
margin:0;
font-family: 'Roboto';
}
h1{
width: 100%;
text-align: center;
font-family: 'Roboto';
}
.main{
scroll-behavior: smooth;
}
.hrr{
width: auto;
text-align: center;
}
hr{
width: 50%;
color: #222;
}
.elem{
margin-top: 10px;
width: auto;
height: auto;
padding: 10px;
/* background-color: #222; */
}
.command{
font-size: 20px;
color: rgb(16, 182, 85);
font-family: 'Roboto';
font-weight: 900;
}
code{
color: rgb(221, 144, 29);
padding: 2px;
}
footer{
position: fixed;
bottom: 0;
height: 5%;
width: 100%;
background-color: #222;
color: aliceblue;
font-size: 25px;
font-family: 'Roboto';
text-align: center;
vertical-align: middle;
padding-top: 15px;
padding-bottom: 15px;
}
a, a:visited, a:hover, a:active {
color: inherit;
vertical-align: middle;
}
.hideTextDeco{
text-decoration: none;
}
</style>
</body>
</html>