Comments (7)
$request = $airtable->getContent( 'Contacts' );
do {
$response = $request->getResponse();
var_dump( $response->records );
}
while( $request = $response->next() );
from airtable-php.
@gabrieldesousah oh I'm sorry
The sort parameter should be an array of sort options.
The good code would be as follow:
$table->getContent( 'products', [
'sort' => [
[
'field' => 'value',
'direction' => 'asc'
]
]
] );
Notice the extra array in sorting array.
from airtable-php.
@gabrieldesousah I don't think Airtable will allow you to get more than 100 per request.
Page Size parameter is used in case you want less than 100.
To retrieve more, you will need to use the pagination as shown in our examples.
Hope this helps
from airtable-php.
from airtable-php.
@gabrieldesousah You can't pass your query with the table name.
You need to format them as an array in the second argument of getContent function.
$table->getContent( 'products', [
'sort' => [
'field' => 'value',
'direction' => 'asc'
]
] );
The first argument needs to be the table name only.
from airtable-php.
from airtable-php.
Perfect, thank you very much!
from airtable-php.
Related Issues (20)
- Ability to enable typecast HOT 1
- Check if Airtable is down HOT 1
- Is there a way to add new column to table if not available? HOT 1
- Help - Multiple column search HOT 1
- PHP 8.1 compatibility (ReturnTypeWillChange) HOT 3
- Hey, there is a critical error. HOT 1
- Date field error! HOT 1
- how to append new record id to an existing field using your library HOT 1
- Get a NULL when trying to show some data HOT 10
- Please merge typecast PR HOT 2
- Add some degree of error handling HOT 1
- What does this error mean?
- Early heads up: switching away from user API keys HOT 4
- Accelerated need to limit large url requests to “list records”, with alternative POST version
- Not all records returned HOT 7
- Comment on Token HOT 2
- How to get specific fields only using formula?
- getting data from a table with "/" character in name
- new API authentication methods HOT 2
- How to add multiple conditions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airtable-php.