import * as fs from "fs";

const clientId = "####-####-####-####-####";
const secret = "##################";
const wordsApi = new WordsApi(clientId, secret);
const requestDocument = fs.createReadStream("Sample.doc");
const request = new model.GetHeaderFootersOnlineRequest({
    document: requestDocument,
    sectionPath: ""
});

wordsApi.getHeaderFootersOnline(request)
.then((requestResult) => {
    // tslint:disable-next-line:no-console
    console.log("Result of request: ", requestResult);
});