이 예제는 WAMP와 동일한 기능을 하지만, HTTP POST를 사용한다는 점이 다릅니다.
프로젝트 초기화하기
|  | 참고: This example requires the most recent Node.js LTS to be installed. | 
예제 디렉터리 <Wwise installation path>/SDK/samples/WwiseAuthoringAPI/js/hello-wwise-node-http에서 다음 명령을 실행해 종속성을 설치하세요. 
프로젝트 코드
예제 디렉터리 hello-wwise-node-wamp의 예제 파일인 index.js는 HTTP POST를 이용해 Wwise Authoring API로 RPC 호출을 수행합니다. 
 
(() => {
    
    const axios = require('axios');
    const ak = require('../../../../include/AK/WwiseAuthoringAPI/js/waapi.js').ak;
    
    const data = {
        uri: ak.wwise.core.getInfo,
        options: {},
        args: {}
    };
    
    const handleResponse = (status, headers, objectPayload) => {
        
        if (status != 200) {
            if (headers["content-type"] == "application/json") {
                console.log(`Error: ${objectPayload.uri}: ${JSON.stringify(objectPayload)}`);
            } else {
                console.log(`Error: ${Buffer.from(objectPayload).toString("utf8")}`);
            }
        } else {
            console.log(`Hello ${objectPayload.displayName} ${objectPayload.version.displayName}`);
        }
    };
    
    axios({
        method: "post",
        url: "http://127.0.0.1:8090/waapi",
        data: data,
        headers: { "content-type": "application/json" }
    }).then((response) => {
        handleResponse(response.status, response.headers, response.data);
    }).catch((err) => {
        if (err.response) {
            handleResponse(err.response.status, err.response.headers, err.response.data);
        } else {
            console.log(`Error: ${err.message}`);
        }
    });
})();
 
|  | 참고: var ak = require('../../../../include/AK/WwiseAuthoringAPI/js/waapi.js').ak라인은 API 경로 선언을 가져옵니다. 이는 <Wwise installation path>/SDK/include/AK/WwiseAuthoringAPI/js에 있습니다. 이 예제에서는 이 파일에 대한 경로가 예제의 위치에 대해 상대적입니다.  | 
프로젝트 실행하기
다음 명령을 실행하세요. 
Wwise Authoring API가 Wwise에 성공적으로 연결되면 다음 출력이 뜹니다.