lib/SiftClient.php
public function unlabel($userId, $opts = array()) {
        $this->mergeArguments($opts, array(
            'abuse_type' => null,
            'timeout' => $this->timeout,
            'version' => $this->version
        ));

        $this->validateArgument($userId, 'user id', 'string');

        $params = array('api_key' => $this->api_key);
        if ($opts['abuse_type']) $params['abuse_type'] = $opts['abuse_type'];

        try {
            $request = new SiftRequest(self::userLabelApiUrl($userId, $opts['version']),
                SiftRequest::DELETE, $opts['timeout'], $opts['version'], array('params' => $params));
            return $request->send();
        } catch (Exception $e) {
            $this->logError($e->getMessage());
            return null;
        }
    }
public function unlabel($userId, $opts = array()) {
        $this->mergeArguments($opts, array(
            'abuse_type' => null,
            'timeout' => $this->timeout,
            'version' => $this->version
        ));

        $this->validateArgument($userId, 'user id', 'string');

        $params = array('api_key' => $this->api_key);
        if ($opts['abuse_type']) $params['abuse_type'] = $opts['abuse_type'];

        try {
            $request = new SiftRequest(self::userLabelApiUrl($userId, $opts['version']),
                SiftRequest::DELETE, $opts['timeout'], $opts['version'], array('params' => $params));
            return $request->send();
        } catch (Exception $e) {
            $this->logError($e->getMessage());
            return null;
        }
    }
public function unlabel ( $ userId , $ opts = array ( ) ) { $ this -> mergeArguments ( $ opts , array ( 'abuse_type' => null , 'timeout' => $ this -> timeout , 'version' => $ this -> version ) ) ; $ this -> validateArgument ( $ userId , 'user id' , 'string' ) ; $ params = array ( 'api_key' => $ this -> api_key ) ; if ( $ opts [ 'abuse_type' ] ) $ params [ 'abuse_type' ] = $ opts [ 'abuse_type' ] ; try { $ request = new SiftRequest ( self :: userLabelApiUrl ( $ userId , $ opts [ 'version' ] ) , SiftRequest :: DELETE , $ opts [ 'timeout' ] , $ opts [ 'version' ] , array ( 'params' => $ params ) ) ; return $ request -> send ( ) ; } catch ( Exception $ e ) { $ this -> logError ( $ e -> getMessage ( ) ) ; return null ; } }
Removes a label from a user

@param string $userId  The ID of a user.  This parameter is required.

@param array $opts  Array of optional parameters for this request:
- string 'abuse_type': The abuse type for which the user should be unlabeled.
If omitted, the user is unlabeled for all abuse types.
- int 'timeout': By default, this client's timeout is used.
- string 'version': By default, this client's version is used.

@return null|SiftResponse
Removes a label from a user