airtable-php
airtable-php copied to clipboard
Ability to enable typecast
Would be good to be able to enable type casting when creating entries
function saveContent($content_type,$fields,$typecast = false)
{
if( ! $this->_detectBatch( $fields ) )
{
$fields = array('fields' => $fields);
}
else
{
$fields = array('records' => $fields);
}
if($typecast) {
$fields['typecast'] = true;
}
$request = new Request( $this, $content_type, $fields, true );
return $request->getResponse();
}