Skip to content

Instantly share code, notes, and snippets.

@nalgeon nalgeon/suggest.r

Last active Jun 26, 2020
What would you like to do?
Пример работы с подсказками DaData на R. Использует пакет httr (
url <- ""
headers <- c(
"Content-Type" = "application/json",
Accept = "application/json",
Authorization = "Token YOUR_API_KEY")
body <- list(
query = "7719402047")
r <- POST(url = url,
config = c(add_headers(headers), accept_json()),
body = body,
encode = "json")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.