#NEWLINE# def clicks_by_day( self , hash = None , shortUrl = None ) : #NEWLINE# #INDENT# ' given a bitly url or hash, get a time series of clicks\n        per day for the last 30 days in reverse chronological order\n        (most recent to least recent) ' #NEWLINE# warnings . warn ( '/v3/clicks_by_day is depricated in favor of /v3/link/clicks?unit=day' , 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 ( data . host , 'v3/clicks_by_day' , params , self . secret ) #NEWLINE# return data [ 'data' ] [ 'clicks_by_day' ]