synthesize_ipinfo_api: Synthesize ipinfo API

Description Usage Arguments Value Note References Examples

View source: R/api.R

Description

Working function for synthesize_api(). It will call lower functions synthesize_ipinfo_api_geohost().

Usage

1
2
3
4
synthesize_ipinfo_api(url_body, api = c("geohost"), use_curl = FALSE,
  ...)

synthesize_ipinfo_api_geohost(url_body, use_curl = FALSE, ...)

Arguments

url_body

character, the leading argument in the API URL.

api

character, 'geohost'.

use_curl

logical, whether use curl(). Default TRUE.

...

other arguments to pass to the function, e.g., key

Value

A url object for get_api_data() use.

Note

When key is omitted or set NULL, the function will search for it in the cache. If nothing is found, a GUI wizard will be launched for you to input the API key. If you want to bypass API key, set key = NA.

References

ipinfo API documentation: https://ipinfo.io/developers

Examples

1
2
3
4
## Not run: 
synthesize_ipinfo_api("<IP Address>", key="<YOUR IPINFO KEY>")

## End(Not run)

madlogos/asesgeo documentation built on Aug. 9, 2019, 9:53 a.m.