~ssweeny/friends/fix-lp1258657

« back to all changes in this revision

Viewing changes to friends/shorteners/tinyurlcom.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2013-04-16 17:51:32 UTC
  • mfrom: (160.11.29 trunk-next)
  • mto: This revision was merged to the branch mainline in revision 218.
  • Revision ID: a.starr.b@gmail.com-20130416175132-kurn5v12qr2rhfn1
Merge on lp:~super-friends/friends/trunk-next

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# friends-dispatcher -- send & receive messages from any social network
2
 
# Copyright (C) 2012  Canonical Ltd
3
 
#
4
 
# This program is free software: you can redistribute it and/or modify
5
 
# it under the terms of the GNU General Public License as published by
6
 
# the Free Software Foundation, version 3 of the License.
7
 
#
8
 
# This program is distributed in the hope that it will be useful,
9
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
# GNU General Public License for more details.
12
 
#
13
 
# You should have received a copy of the GNU General Public License
14
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 
16
 
"""TinyURL.com URL shortener for Friends
17
 
 
18
 
macno (Michele Azzolari) - 02/13/2008
19
 
"""
20
 
 
21
 
__all__ = [
22
 
    'URLShortener',
23
 
    ]
24
 
 
25
 
 
26
 
from friends.shorteners.base import ShortenerBase
27
 
 
28
 
 
29
 
class URLShortener(ShortenerBase):
30
 
    URL_TEMPLATE = 'http://tinyurl.com/api-create.php?url={}'
31
 
    fqdn = 'http://tinyurl.com'
32
 
    name = 'tinyurl.com'