suggest.Rd
Calls DADATA's REST API, with one of the available methods. All supported
methods related with «suggestion» you can see in supported_suggestion()
suggest(method, query = NULL, tidy = TRUE, ...)
method | Name of supported method. Use |
---|---|
query | Main request. See examples or https://dadata.ru/api/ for more. |
tidy | If TRUE returns response from the server as tidy |
... | Specify additional calling parameters, if necessary. For more information on available parameters of corresponding method, see the description page on https://dadata.ru/api/ |
For more information about DADATA API visit the following link: DADATA API Documentation.
#save your tokens first if (FALSE) { save_dadata_tokens(api_token='__INSERT_YOUR_API_TOKEN_HERE__', secret_token='__INSERT_YOUR_SECRET_TOKEN_HERE__') #Suggest country suggest(method = "country", query = "ef") #Suggest company with specified parameters suggest(method = "party", query = "sber", branch_type = "MAIN", count = 20) #Suggest bank suggest(method = "bank", query = "ti") }