-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to v3 #6
Comments
Seems there is an API issue. Running the code from the site examples gives me: GET("http://www.cepaberto.com/api/v3/address?estado=SP&cidade=Ubatuba",
add_headers(Authorization = auth)) %>%
content("parsed") Result: named list() This is not an R issue. Copying directly from the site: import requests
url = "http://www.cepaberto.com/api/v3/address"
headers = {'Authorization': 'Token token=XXXXXXXXXX'}
params = {'estado': 'SP', 'cidade': 'Ubatuba'}
response = requests.get(url, headers=headers, params=params)
print(response.json()) Result: {} |
@edumucelli do we need lat & lng for estado/cidade requests, Eduardo? GET("http://www.cepaberto.com/api/v3/nearest?cidade=Ubatuba&estado=SP", add_headers(Authorization = auth)) %>% content("parsed")
$message
[1] "Atributos \"lat\" e \"lng\" necessários" |
I could indeed make it accept a |
Ah, understood, my mistake, I was confusing it with the cidade/estado request. |
Closing, CRAN submission underway. |
No description provided.
The text was updated successfully, but these errors were encountered: