cartodb-rb-client icon indicating copy to clipboard operation
cartodb-rb-client copied to clipboard

Support v2 of cartodb's API

Open dimroc opened this issue 13 years ago • 3 comments

All generated http requests seem to only hit v1 of the API, as evidenced in the vcr yml files.

dimroc avatar Jul 24 '12 01:07 dimroc

Yeah, actually this is a known issue, but I didn't have time to fix it. The problem is that the ruby client uses both the SQL API (v2) and the REST API (v1) and at the very beginning of the project, I assumed that there'd be only one API.

I'd like to switch all the ruby client to the SQL API, but currently it's imposible since some API calls (like the create table one) can cause integrity problems, so that kind of calls must be performed using the REST API. We're working on fixing that issue in CartoDB, so I'll leave it as it is right now until we fix CartoDB and then, I'd switch the ruby client to use the SQL API completely and drop the REST API.

Ferdev avatar Jul 24 '12 10:07 Ferdev

Ferdev, is this a Problem with CartoDB/SQL API or with this specific ruby client for cartodb?

tailic avatar Nov 13 '12 18:11 tailic

Sorry tailic, I missed your message.

It's a problem with the ruby client, the SQL API is pretty fine :)

Ferdev avatar Nov 21 '12 10:11 Ferdev