Learn R Programming

urlshorteneR (version 1.1.2)

bitly_retrieve_metrics_by_referrers: Get Metrics for a Bitlink by referrers

Description

This endpoint will return metrics about the referrers referring click traffic to a single Bitlink.

Usage

bitly_retrieve_metrics_by_referrers(bitlink = NULL, size = 100,
  unit = NULL, unit_reference = 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

- A unit of time

unit_reference

- string | An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current 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.

See Also

https://dev.bitly.com/v4/#operation/getMetricsForBitlinkByReferrers

Examples

Run this code
# NOT RUN {
bitly_retrieve_metrics_by_referrers(bitlink = "bit.ly/DPetrov", unit = "day", 
units = -1, size = 100)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab