bitly-shorten/docs/net.thauvin.erik.bitly/-bitlinks/clicks.md
Erik C. Thauvin 9ba23fd6c3 Revert "Added CallResponse and Bitlinks.udpate()."
This reverts commit 05ee938de7fac49026118a53f5af02ff26d82ccd.
2020-03-03 13:49:58 -08:00

1.5 KiB

docs / net.thauvin.erik.bitly / Bitlinks / clicks

clicks

@JvmOverloads fun clicks(bitlink: String, unit: Units= Units.DAY, units:Int= -1, size:Int= 50, unit_reference:String= Constants.EMPTY, toJson:Boolean= false):String (source)

Returns the click counts for a specified Bitlink.

See the Bitly API for more information.

Parameters

bitlink - The bitlink.

unit - A unit of time.

units - An integer representing the time units to query data for. pass -1 to return all units available.

size - The quantity of items to be be returned.

unit_reference - An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time.

toJson - Returns the full JSON response if true

Return The click counts or JSON response object.