Learn R Programming

urlshorteneR (version 0.9.2)

bitly_UserMetricsReferringDomains: Returns aggregate metrics about the domains referring click traffic to all of the authenticated user's Bitlinks.

Description

If the user is a master (ent.) account, or is a subaccount with full_reports permission, the user may choose to view the metrics of any account belonging to the master account.

Usage

bitly_UserMetricsReferringDomains(limit = 1000, unit = c("minute", "hour",
  "day", "week", "month"), rollup = c("false", "true"), units = -1,
  login = NULL, exclude_social_networks = c("true", "false"),
  showRequestURL = FALSE)

Arguments

limit

- 1 to 1000 (default=1000).

unit

- minute, hour, day, week or month, default: day; Note: when unit is minute the maximum value for units is 60.

rollup

- true or false. Return data for multiple units rolled up to a single result instead of a separate value for each period of time.

units

- an integer representing the time units to query data for. Pass -1 to return all units of time.

login

- an optional string consisting of the account name used to report the appropriate statistics; defaults to the current user.

exclude_social_networks

- true (default) or false. If true, exclude domains that are part of a social network that bitly tracks.

showRequestURL

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

Value

clicks - the number of clicks referred from this URL.

referrer - the URL referring clicks.

See Also

See http://dev.bitly.com/user_metrics.html#v3_user_referring_domains

Examples

Run this code
# NOT RUN {
bitly_token <- bitly_auth(key = "", secret = "")
bitly_UserMetricsReferringDomains(unit = "day", units = -1, limit = 100, rollup = "true")
bitly_UserMetricsReferringDomains(unit = "day", units = -1, limit = 100, rollup = "false")
bitly_UserMetricsReferringDomains(unit = "day", units = -1, limit = 100, 
exclude_social_networks = "false")
bitly_UserMetricsReferringDomains(unit = "day", units = -1, limit = 100, 
exclude_social_networks = "true")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab