synthesize_ipify_api: Synthesize ipify 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_ipify_api_geohost() or synthesize_ipify_api_getip().

Usage

1
2
3
4
5
6
synthesize_ipify_api(url_body, api = c("geohost", "getip"),
  use_curl = FALSE, ...)

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

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

Arguments

url_body

character, the leading argument of the API URL.

api

character, 'geohost', 'getip'.

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

ipify API documentation: https://www.ipify.org

Examples

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

## End(Not run)

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