Newer
Older
WopiAPI.prototype.getPassports = function (fileID) {
const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
url: `${window.WOPI_URL}getPassports`,
publicKey,
uuid,
token,
deviceHash,
WopiAPI.prototype.putDocument = function (path, accessToken, file) {
const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
path = path[0] === "/" ? path : `/${path}`;
url: `${window.WOPI_URL}files${path}/contents`,
method: 'POST',
headers: {
publicKey,
uuid,
token,
deviceHash
},
params: {
access_token: accessToken
},
data: file
};
return axios(requestConfig);
};