#NEWLINE# def clicks( self , hash = None , shortUrl = None ) : #NEWLINE# #INDENT# '\n        given a bitly url or hash, get statistics about the clicks on that link\n        ' #NEWLINE# warnings . warn ( '/v3/clicks is depricated in favor of /v3/link/clicks' , DeprecationWarning ) #NEWLINE# if ( ( not hash ) and ( not shortUrl ) ) : #NEWLINE# #INDENT# raise BitlyError ( 500 , 'MISSING_ARG_SHORTURL' ) #NEWLINE# #UNINDENT# params = dict ( ) #NEWLINE# if hash : #NEWLINE# #INDENT# params [ 'hash' ] = hash #NEWLINE# #UNINDENT# if shortUrl : #NEWLINE# #INDENT# params [ 'shortUrl' ] = shortUrl #NEWLINE# #UNINDENT# data = self . _call ( self . host , 'v3/clicks' , params , self . secret ) #NEWLINE# return data [ 'data' ] [ 'clicks' ]