Merge pull request #596 from CartoDB/patch-add-auth-example

Update 08-making-calls.md
This commit is contained in:
Iñigo Medina (aka MacGyver) 2019-06-13 12:11:31 +02:00 committed by GitHub
commit 08339babe3
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