You need to pass in rollup
as a keyword parameter instead:
clicks = conn_btly.link_clicks(link['link'], rollup=False)
You are expected to pass in a Python boolean value. The parameter is not part of the bit.ly URL, it is a parameter to the API call instead.
All optional API parameters (so apart from the link), are passed in as keyword parameters, including unit
, units
, tz_offset
and limit
.
You can take a look at the internal method that handles these parameters if you are so inclined.