-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
180 lines (134 loc) · 4.6 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>dev.tiqav.com</title>
<link href='http://img.tiqav.com/images/favicon.ico' rel='shortcut icon' type='image/x-icon' />
</head>
<body>
<div id="container">
<div class="inner">
<header>
<h1>dev.tiqav.com</h1>
<h2>tiqav API Documentation</h2>
</header>
<hr>
<section id="main_content">
<p><a href="http://tiqav.com/">http://tiqav.com/</a></p>
<hr><h2>Attention</h2>
<ul>
<li>Production Environment
<ul>
<li>api.tiqav.com</li>
</ul>
</li>
<li>Development Environment
<ul>
<li>sandbox.api.tiqav.com</li>
</ul>
</li>
</ul><hr><h2>Search API</h2>
<ul>
<li>Example Response</li>
</ul><pre><code>[
{"id":"3om","ext":"jpg","height":1442,"width":1036,"source_url":"http://example.com/image1.jpg"},
{"id":"1eb","ext":"jpg","height":171,"width":250,"source_url":"http://example.com/image2.jpg"}
]
</code></pre>
<h3>GET search</h3>
<pre><code>http://api.tiqav.com/search.json?q=[query]&callback=[fucntion_name]
</code></pre>
<h3>GET search/newest</h3>
<pre><code>http://api.tiqav.com/search/newest.json?callback=[fucntion_name]
</code></pre>
<h3>GET search/random</h3>
<pre><code>http://api.tiqav.com/search/random.json?&callback=[fucntion_name]
</code></pre>
<hr><h2>Image API</h2>
<ul>
<li>Example Response</li>
</ul><pre><code>{"id":"3om","ext":"jpg","height":1442,"width":1036,"source_url":"http://example.com/image1.jpg"}
</code></pre>
<h3>GET images/[id]</h3>
<pre><code>http://api.tiqav.com/images/[id].json
</code></pre>
<h3>POST images</h3>
<pre><code>http://api.tiqav.com/images.json?url=[http://example.com/image.(jpe?g|png|gif)]&serifu=[画像内のセリフ、テロップ等の文字列]&tags=[comma,separated,tags]&callback=[fucntion_name]
</code></pre>
<ul>
<li>Either <em>'serifu'</em> or <em>'tags'</em> is required</li>
<li>In the development environment, this API is executed in <em>'dry run'</em> mode.</li>
<li>Alias <em>'GET images.json?url=[...]&serifu=[...]&tags=[...]&callback=[...]'</em>
</li>
</ul><hr><h2>Tag API</h2>
<ul>
<li>Example Response</li>
</ul><pre><code>["tag1", "tag2"]
</code></pre>
<h3>GET images/[id]/tags</h3>
<pre><code>http://api.tiqav.com/images/[id]/tags.json?callback=[fucntion_name]
</code></pre>
</ul><h3>GET tags</h3>
<pre><code>http://api.tiqav.com/tags.json?q=[query]&callback=[fucntion_name]
</code></pre>
<hr><h2>Image URL</h2>
<h3>Original</h3>
<pre><code>http://img.tiqav.com/[id].[ext]
</code></pre>
<ul>
<li>Example URL
<ul>
<li><a href="http://img.tiqav.com/3om.jpg">http://img.tiqav.com/3om.jpg</a></li>
</ul>
</li>
</ul><h3>Thumbnail</h3>
<pre><code>http://img.tiqav.com/[id].th.jpg
</code></pre>
<ul>
<li>Example URL
<ul>
<li><a href="http://img.tiqav.com/3om.th.jpg">http://img.tiqav.com/3om.th.jpg</a></li>
</ul>
</li>
</ul><h3>Glitch</h3>
<pre><code>http://img.tiqav.com/[id].glitch
</code></pre>
<ul>
<li>Example URL
<ul>
<li><a href="http://img.tiqav.com/3om.glitch">http://img.tiqav.com/3om.glitch</a></li>
</ul>
</li>
</ul><h3>I'm Feeling Lucky</h3>
<pre><code>http://[query].tiqav.com/
</code></pre>
<ul>
<li>Example URL
<ul>
<li><a href="http://xn--y8j9a1i.tiqav.com/">http://ちくわ.tiqav.com/</a></li>
</ul>
</li>
</ul>
<hr>
</section>
<section id="downloads" class="clearfix">
<a href="https://github.com/tiqav/dev.tiqav.com/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
<a href="https://github.com/tiqav/dev.tiqav.com/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
<a href="https://github.com/tiqav/dev.tiqav.com" id="view-on-github" class="button"><span>View on GitHub</span></a>
</section>
<footer>
dev.tiqav.com is maintained by <a href="https://github.com/tiqav">tiqav</a><br>
This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="http://twitter.com/jasonlong">Jason Long</a>.
</footer>
</div>
</div>
</body>
</html>