Skip to content
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

Access to API #71

Open
jvrck opened this issue Apr 3, 2019 · 3 comments
Open

Access to API #71

jvrck opened this issue Apr 3, 2019 · 3 comments

Comments

@jvrck
Copy link

jvrck commented Apr 3, 2019

Hi,

I can log in and create datasets and do what I need in builder. But I cannot access the sql or import api.

How can you access the APIs in the container?

Kind Regards.

@sverhoeven
Copy link
Owner

The container is configured with subdomainless urls

The sql api is running at http://cartodb.localhost/user/{username}/api/v2/sql?api_key={api_key}&q={SQL query}

The import api is running at http://cartodb.localhost/user/{username}/api/v1/imports/?api_key={api_key}

@jvrck
Copy link
Author

jvrck commented Apr 15, 2019

Hi @sverhoeven , thanks for replying.

The SQL API works great thanks.

I can access the import api endpoint in the browser now, which is more promising, but I get an error with CURL.

Trying 127.0.1.1...
TCP_NODELAY set
Connection failed
connect to 127.0.1.1 port 80 failed: Operation timed out
Failed to connect to 127.0.1.1 port 80: Operation timed out
Closing connection 0
curl: (7) Failed to connect to 127.0.1.1 port 80: Operation timed out

I am following the api information here https://carto.com/developers/import-api/reference/# and trying to import a file.

@ghost
Copy link

ghost commented May 20, 2021

Hello @sverhoeven
How about accessing the Maps API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants