Learn R Programming

urlshorteneR (version 0.9.2)

bitly_IsProDomain: Validate given domain for the PRO features

Description

Query whether a given domain is a valid bitly pro domain. Keep in mind that bitly custom short domains are restricted to less than 15 characters in length.

Usage

bitly_IsProDomain(domain, showRequestURL = FALSE)

Arguments

domain

- A short domain. ie: nyti.ms.

showRequestURL

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

Value

bitly_pro_domain - 0 or 1 designating whether this is a current bitly domain.

domain - an echo back of the request parameter.

See Also

See http://dev.bitly.com/domains.html#v3_bitly_pro_domain

Examples

Run this code
# NOT RUN {
bitly_token <- bitly_auth(key = "be03aead58f23bc1aee6e1d7b7a1d99d62f0ede8", secret = "")
bitly_IsProDomain(domain = "nytidsfds.ms") 
bitly_IsProDomain(domain = "nyti.ms", showRequestURL = TRUE) 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab