~ubuntu-branches/ubuntu/raring/gwibber/raring-proposed

« back to all changes in this revision

Viewing changes to gwibber/microblog/urlshorter/cligs.py

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2013-04-03 01:03:12 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20130403010312-vtjegq0c7ogvm83e
Tags: 3.7.0bzr13.04.02-0ubuntu1
* Ported to use Friends (LP: #1156979)
* New icons from Armando Lara
* debian/control
  - added transitional packages for gwibber-* to friends-*

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
"""
3
 
 
4
 
Cli.gs interface for Gwibber
5
 
macno (Michele Azzolari) - 02/20/2008
6
 
 
7
 
"""
8
 
 
9
 
import urllib2
10
 
 
11
 
PROTOCOL_INFO = {
12
 
 
13
 
  "name": "cli.gs",
14
 
  "version": 0.1,
15
 
  "fqdn" : "http://cli.gs",
16
 
  
17
 
}
18
 
 
19
 
class URLShorter:
20
 
 
21
 
  def short(self, text):
22
 
    short = urllib2.urlopen("http://cli.gs/api/v1/cligs/create?appid=gwibber&url=%s" % urllib2.quote(text)).read()
23
 
    return short
24