API - Basic API calls

In this function you assemble a full string where you put values as well. Since you put values in then you might want to run addslashes for every value.