public function createMany(array $params)
{
try {
$route = $this->getRoute(__FUNCTION__);
} catch (RouteException $e) {
if (!isset($this->resourceName)) {
$this->resourceName = $this->getResourceNameFromClass();
}
$route = $this->resourceName . '/create_many.json';
$this->setRoute('createMany', $route);
}
return $this->client->post($route, [$this->objectNamePlural => $params]);
}