Description Usage Arguments See Also Examples
View source: R/getting_functions.R
Calls DADATA's REST API, with one of the available methods. All supported
methods related with «suggestion» you can see in supported_find_by_id()
1 | find_by_id(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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #save your tokens first
## Not run:
save_dadata_tokens(api_token = '__INSERT_YOUR_API_TOKEN_HERE__',
secret_token = '__INSERT_YOUR_SECRET_TOKEN_HERE__')
#Find address by FIAS ID
find_by_id(method = "address", query = "9120b43f-2fae-4838-a144-85e43c2bfb29")
#Find company by INN and KPP:
find_by_id(method = "party", query = "7707083893", kpp = "540602001")
#Tax office
find_by_id(method = "fns_unit", query = "5257")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.