Feed a POSTGRESQL DB with SC data from the SC API

For Val de Garonne Agglomeration, I would need some info about the way to feed a database with data coming from Sensor.Community.

It is a POSTGRESQL DB.

Would it be better to call the API or to send the data from the sensors ? Do you have some examples for code ? it should work with PHP, shouldn’t it ?