-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
138 lines (104 loc) · 5.59 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta name="robots" content="INDEX,FOLLOW" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="author" content="Yan Naing" />
<meta name="description" content="Documentation site for maepaysho" />
<meta name="keyword" content="election, mae, documentation, api, myanmar" />
<link href="assets/favicon.png" rel="icon" type="image/png">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.0/material.indigo-pink.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.css">
<link rel="stylesheet" href="assets/style.css">
<title>Myanmar API Documentation</title>
</head>
<body>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Maepaysoh Endpoint Documentations</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only">
<a class="mdl-navigation__link" href="index.html">Home</a>
<a class="mdl-navigation__link" href="endpoints.html">Endpoints</a>
<a class="mdl-navigation__link" target="blank" href="http://maepaysoh.org">Website</a>
</nav>
</div>
</header>
<main class="mdl-layout__content">
<div class="page-container">
<div class="mdl-grid max-860">
<div class="mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet">
<h3>WELCOME !!!</h3>
</div>
<div class="mdl-card mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet">
<div class="mdl-card__title mdl-color--blue-500">
<h2 class="mdl-card__title-text mdl-color-text--white">Get your API key</h2>
</div>
<div class="mdl-card__supporting-text">
<p>
Please sign up and create application at <a href="http://maepaysoh.org">http://maepaysoh.org</a>
</p>
<a href="http://maepaysoh.org/dashboard/applications/create" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
Create Application Now
</a>
</div>
</div>
<div class="mdl-card mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet">
<div class="mdl-card__title mdl-color--blue-500">
<h2 class="mdl-card__title-text mdl-color-text--white">Unique User tracking</h2>
</div>
<div class="mdl-card__supporting-text">
<p>For unique user tracking, please follow these steps to request the API.</p>
<p><strong>Generate Token for each user</strong></p>
<p>Send POST request to</p>
<div class="request-link">
http://api.maepaysoh.org/token/generate
</div> <!-- end of request-link -->
<p>With Your api_key</p>
<pre>
<code class="language-javascript">
{
api_key : 'your-api-key'
}
</code>
</pre>
<p>You will get a response like this</p>
<pre>
<code class="language-javascript">
{
"_meta": {
"status": "ok",
"count": 1,
"api_version": 1
},
"data": {
"token": "user-token-key"
}
}
</code>
</pre>
<p><strong>Request data with user token</strong></p>
<div class="request-link">
http://api.maepaysoh.org/{endpoint}/{resourse}?token=user-token-key
</div>
<p>Get Data with Zawgyi Font</p>
<div class="request-link">
http://api.maepaysoh.org/{endpoint}/{resourse}?font=zawgyi&token=user-token-key
</div>
</div>
</div>
</div> <!-- end of mdl-grid -->
</div> <!-- end of page-container -->
</main> <!-- end of mdl-layout__content -->
</div>
<script src="https://storage.googleapis.com/code.getmdl.io/1.0.0/material.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.js"></script>
</body>
</html>