public function create(array $suppressions)
    {
        foreach ($suppressions as $suppression) {
            $this->assertValidSuppression($suppression);
        }

        $request = new Request('suppressions');
        $request->setParams(['subscribers' => $suppressions]);

        $response = $this->client->post($request);

        $this->assertSuccessResponse($response);

        return $response->getData();
    }
public function create(array $suppressions)
    {
        foreach ($suppressions as $suppression) {
            $this->assertValidSuppression($suppression);
        }

        $request = new Request('suppressions');
        $request->setParams(['subscribers' => $suppressions]);

        $response = $this->client->post($request);

        $this->assertSuccessResponse($response);

        return $response->getData();
    }
public function create ( array $ suppressions ) { foreach ( $ suppressions as $ suppression ) { $ this -> assertValidSuppression ( $ suppression ) ; } $ request = new Request ( 'suppressions' ) ; $ request -> setParams ( [ 'subscribers' => $ suppressions ] ) ; $ response = $ this -> client -> post ( $ request ) ; $ this -> assertSuccessResponse ( $ response ) ; return $ response -> getData ( ) ; }
Creates new Suppression

@link https://rule.se/apidoc/#suppressions-suppressions-post

@param array $suppression
@return array
@throws \Exception
Creates new Suppression