Giter Club home page Giter Club logo

baserow-php's Issues

Filter problem

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?

Delete function doesn't work

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:

  • putting this line inside the "if" block I told about earlier
  • modify this line to :
curl_setopt($curl,CURLOPT_POSTFIELDS, json_encode($jsonData ?? []));
  • initialize you $jsonData at the beginning of the function

Thanks in advance for your response !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.