public function createMethod($employee_id, $value, $created = '')
    {
        $params = compact('employee_id', 'value');
        if (! empty($created)) {
            $params['created'] = $created;
        }

        $result = $this->createMethodInternal($params);
        $statusCode = (int)$result[ 'statusCode' ];

        if ($statusCode === 200) {
            return $this->getResultAsArrayWithoutStatusCode($result);
        }

        $this->reportUnexpectedResponse($result, 1541006274);
    }
public function createMethod($employee_id, $value, $created = '')
    {
        $params = compact('employee_id', 'value');
        if (! empty($created)) {
            $params['created'] = $created;
        }

        $result = $this->createMethodInternal($params);
        $statusCode = (int)$result[ 'statusCode' ];

        if ($statusCode === 200) {
            return $this->getResultAsArrayWithoutStatusCode($result);
        }

        $this->reportUnexpectedResponse($result, 1541006274);
    }
public function createMethod ( $ employee_id , $ value , $ created = '' ) { $ params = compact ( 'employee_id' , 'value' ) ; if ( ! empty ( $ created ) ) { $ params [ 'created' ] = $ created ; } $ result = $ this -> createMethodInternal ( $ params ) ; $ statusCode = ( int ) $ result [ 'statusCode' ] ; if ( $ statusCode === 200 ) { return $ this -> getResultAsArrayWithoutStatusCode ( $ result ) ; } $ this -> reportUnexpectedResponse ( $ result , 1541006274 ) ; }
Create a new recovery method
@param string $employee_id
@param string $value
@param string $created If specified, indicates the record is to be created pre-verified.
@return String[]
@throws ServiceException
Create a new recovery method