powered by
Returns the number of clicks on a single Bitlink of the authenticated user.
bitly_LinksMetricsClicks(link, limit = 1000, unit = c("minute", "hour", "day", "week", "month"), units = -1, rollup = "true", showRequestURL = FALSE)
- a Bitlink.
- 1 to 1000 (default=1000).
- minute, hour, day, week or month, default: day; Note: when unit is minute the maximum value for units is 60.
- an integer representing the time units to query data for. Pass -1 to return all units of time.
- true (default) or false. Return data for multiple units rolled up to a single result instead of a separate value for each period of time.
- show URL which has been build and requested from server. For debug purposes.
clicks - the number of clicks on the specified Bitlink.
dt - time in UTC format (only when rollup = "false")
http://dev.bitly.com/link_metrics.html#v3_link_clicks
# NOT RUN { bitly_token <- bitly_auth(key = "", secret = "") bitly_LinksMetricsClicks(link = "http://bit.ly/DPetrov", unit = "day", units = -1, limit = 100) # } # NOT RUN { # }
Run the code above in your browser using DataLab