forked from nomiddlename/cstwitterbot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bitly.html
26 lines (24 loc) · 916 Bytes
/
bitly.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
<html>
<head>
<title>Citysearch® Twitter Bot Setup - URL Shortening</title>
</head>
<body>
<h1>bit.ly Credentials</h1>
{% if credentials %}
<p>Current username: {{credentials.username}}</p>
<p><a href="/setup/bitly/clear">Clear credentials (no credentials means no url shortening)</a>.</p>
{% else %}
<p>No bit.ly username stored yet, no shortening will be performed.</p>
{% endif %}
<h2>Change username</h2>
{% if error %}
<p class="error">{{error}}</p>
{% endif %}
<form method="POST" action="/setup/bitly">
<label for="username">Username:</label>
<input type="text" id="username" name="username" value="{{credentials.username}}"/>
<label for="apikey">API Key:</label>
<input type="text" id="apikey" name="apikey" value="{{credentials.apikey}}"/>
<input type="submit" value="store"/>
</form>
</html>