src/Sendy.php
public function unsubscribe($email)
    {
        $result = $this->buildAndSend('unsubscribe', ['email' => $email]);

        /**
         * Prepare the array to return
         */
        $notice = [
            'status' => true,
            'message' => '',
        ];

        /**
         * Handle results
         */
        switch (strval($result)) {
            case '1':
                $notice['message'] = 'Unsubscribed';

                break;
            default:
                $notice = [
                    'status' => false,
                    'message' => $result
                ];

                break;
        }

        return $notice;
    }
public function unsubscribe($email)
    {
        $result = $this->buildAndSend('unsubscribe', ['email' => $email]);

        /**
         * Prepare the array to return
         */
        $notice = [
            'status' => true,
            'message' => '',
        ];

        /**
         * Handle results
         */
        switch (strval($result)) {
            case '1':
                $notice['message'] = 'Unsubscribed';

                break;
            default:
                $notice = [
                    'status' => false,
                    'message' => $result
                ];

                break;
        }

        return $notice;
    }
public function unsubscribe ( $ email ) { $ result = $ this -> buildAndSend ( 'unsubscribe' , [ 'email' => $ email ] ) ; /**
         * Prepare the array to return
         */ $ notice = [ 'status' => true , 'message' => '' , ] ; /**
         * Handle results
         */ switch ( strval ( $ result ) ) { case '1' : $ notice [ 'message' ] = 'Unsubscribed' ; break ; default : $ notice = [ 'status' => false , 'message' => $ result ] ; break ; } return $ notice ; }
Method to unsubscribe a user from a list

@param $email

@return array
Method to unsubscribe a user from a list