Skip to content

batch request support for some methods

Compare
Choose a tag to compare
@lanlin lanlin released this 17 Dec 10:15
· 208 commits to master since this release

Most of the methods that have the get & delete prefix support batch request.

For more detail about the batch request, you should have to read the source code.

Sorry, I have no time to write documents.

$id  = 'id_xxx';
$ids = ['id_xxx', 'id_yyy', ...];

// one per time
$dataA = $nylas->Contacts()->Contact()->getContact($id);
$dataB = $nylas->Contacts()->Contact()->deleteContact($id);

// batch request
$dataC = $nylas->Contacts()->Contact()->getContact($ids);
$dataD = $nylas->Contacts()->Contact()->deleteContact($ids);