Zendesk\API\Traits\Resource\DeleteMany::deleteMany PHP 메소드

deleteMany() 공개 메소드

Show multiple resources
public deleteMany ( array $ids = [], string $key = 'ids' ) : null
$ids array Array of IDs to delete
$key string Could be `id` or `external_id`
리턴 null
    public function deleteMany(array $ids = [], $key = 'ids')
    {
        try {
            $route = $this->getRoute(__FUNCTION__);
        } catch (RouteException $e) {
            if (!isset($this->resourceName)) {
                $this->resourceName = $this->getResourceNameFromClass();
            }
            $route = $this->resourceName . '/destroy_many.json';
            $this->setRoute('', $route);
        }
        $response = Http::send($this->client, $route, ['method' => 'DELETE', 'queryParams' => [$key => implode(',', $ids)]]);
        $this->client->setSideload(null);
        return $response;
    }
DeleteMany