Update 08-making-calls.md

This commit is contained in:
Iñigo Medina (aka MacGyver) 2019-06-13 10:28:16 +02:00 committed by GitHub
parent 772d99acd4
commit a52d6062c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,13 @@ https://{username}.carto.com/api/v2/sql?q=SELECT count(*) FROM {table_name}
} }
``` ```
Finally, remember that in order to use the SQL API, either your table must be public, or you must be [authenticated]({{site.sqlapi_docs}}/guides/authentication/#authentication) using API Keys. **Tip:** Finally, remember that in order to use the SQL API, either your table must be public, or you must be [authenticated]({{site.sqlapi_docs}}/guides/authentication/#authentication) using API Keys.
So, using the same Count Example, it would be as follows:
```bash
https://{username}.carto.com/api/v2/sql?api_key={your_api_key}&q=SELECT count(*) FROM {table_name}
```
### POST and GET ### POST and GET