How many us can you find in:
Q: Script.Util.HttpRequest DELETE method not working I am using the following code to submit an HTTP delete request. I have this function for the Delete API call but its not working. I cannot get the error message when trying it in a CloudPage, it gives me a blank page. Am I missing something?
function sendUsersToSegment(token, setup, payload, snapchatAudienceId) {
        var accessToken = token;
        var auth = Bearer  + accessToken;
        var url = setup.snapRemoveUserURL + / +snapchatAudienceId+ /users;
        var payload = payload;
        var req = new Script.Util.HttpRequest(url);
        req.emptyContentHandling = 0;
        req.retries = 2;
        req.continueOnError = true;
        req.contentType = application/json
        req.setHeader(Authorization, auth);
        req.method = DELETE;
        req.postData = payload;

        try{
        var resp = req.send();
        Write(Stringify(resp.content));
        if (resp.StatusCode == 201 || resp.StatusCode == 200) {
        var res = Platform.Function.ParseJSON(resp[Response][0]);
        if (res.eventInstanceId != null && res.eventInstanceId != ) return true;
        } else {
            return false;
        }
        }catch(error){
            Write(Stringify(error))
        }
    }


user
I counted thirty-three "u"s in that text.
assistant