stevecomrie / baserow-php Goto Github PK
View Code? Open in Web Editor NEWUnofficial php interface to the Baserow.io API
Home Page: https://baserow.io/
License: GNU General Public License v3.0
Unofficial php interface to the Baserow.io API
Home Page: https://baserow.io/
License: GNU General Public License v3.0
Hello,
First of all, thank you for your work, it works really well.
I just have an issue for the delete function. It just doesn't work and I always get a 500 error.
I did some research on your project, and I think I found the problem. On your Request.php file, the init function put your "$url_encoded" variable to true in case of a delete. So far so good, but right after, you check if this variable is set to false, and if so you create the json you will send on the cUrl.
Now is the problem. Right after this "if" block (line 129), you wrote:
curl_setopt($curl,CURLOPT_POSTFIELDS, json_encode($jsonData));
But in the case of a delete, $jsonData doesn't exist because the code didn't go in that "if" block.
I tried 3 solutions that works:
curl_setopt($curl,CURLOPT_POSTFIELDS, json_encode($jsonData ?? []));
Thanks in advance for your response !
Hi,
Thanks for your job, it works fine.
But I wanted to add a filter, and it does not work.
I wrote this:
$baserow = new Baserow([
'api_key' => 'myAPIkey',
'api_url' => 'https://api.baserow.io/api/database/rows/table/',
'debug' => true,
'table_map' => []
]);
$params = array(
//"filter__field_504823__equal" => $email //does not work. this field is an email.
);
$response = $baserow->list(81777, $params); //I must add a number to my table
Is it a bug, or a mistake?
Would it be possible to add the #baserow tag to this repo
I'll show up in this nice list here:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.