bitly_retrieve_clicks {urlshorteneR}R Documentation

Get Clicks for a Bitlink

Description

See https://dev.bitly.com/api-reference/#getClicksForBitlink This will return the click counts for a specified Bitlink. This returns an array with clicks based on a date.

Usage

bitly_retrieve_clicks(
  bitlink = NULL,
  size = 50,
  unit_reference = NULL,
  unit = NULL,
  units = -1,
  showRequestURL = FALSE
)

Arguments

bitlink

- required, a Bitlink made of the domain and hash

size

- The quantity of items to be be returned

unit_reference

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

unit

- A unit of time

units

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

showRequestURL

- show URL which has been build and requested from server. For debug purposes.

Examples

## Not run: 
bitly_retrieve_clicks(bitlink = "cnn.it/2HomWGB", unit = "day", units = -1, size = 100)

## End(Not run)

[Package urlshorteneR version 1.5.7 Index]