<s> class Cligs ( Service ) : <EOL> def __init__ ( self , apikey = None , appid = None ) : <EOL> self . apikey = apikey <EOL> self . appid = appid <EOL> def shrink ( self , bigurl , title = None ) : <EOL> parameters = { '<STR_LIT:url>' : bigurl } <EOL> if title : <EOL> parameters [ '<STR_LIT:title>' ] = title <EOL> if self . apikey : <EOL> parameters [ '<STR_LIT:key>' ] = self . apikey <EOL> if self . appid : <EOL> parameters [ '<STR_LIT>' ] = self . appid <EOL> resp = request ( '<STR_LIT>' , parameters ) <EOL> return resp . read ( ) <EOL> def expand ( self , tinyurl ) : <EOL> '''<STR_LIT>''' <EOL> return get_redirect ( tinyurl ) </s>
