Esempio n. 1
0
 public function deleteByIds(array $ids, $end_point = '')
 {
     if (strpos($end_point, 'http') !== 0) {
         $end_point = $this->api->getApiUrl() . $end_point;
     }
     $request = $this->api->delete($end_point);
     $request->getQuery()->set('ids', implode(',', $ids));
     $response = $request->send();
     return $response->getStatusCode() == 200;
 }