"include/git@code.vereign.com:docker/osticket.git" did not exist on "c8764a2ceb5c8eedce1ae89ae2ef437e820d91a7"
Newer
Older
WopiAPI.prototype.getPassportsNewProtocol = function (resourceID, contentType) {
const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
publicKey,
uuid,
token,
deviceHash,
resourceID: encodeURI(resourceID),
contentType: encodeURI(contentType)
WopiAPI.prototype.getPassports = function (fileID) {
const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
const requestConfig = {
url: `${window.WOPI_URL}getPassports`,
method: 'POST',
headers: {
publicKey,
uuid,
token,
deviceHash,
fileID: encodeURI(fileID)
}
};
return axios(requestConfig);
};
WopiAPI.prototype.putDocument = function (resourceID, accessToken, file) {
const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
resourceID = encodeURI(resourceID);
url: `${window.WOPI_URL}files/${resourceID}/contents`,
method: 'POST',
headers: {
publicKey,
uuid,
token,
deviceHash
},
params: {
access_token: accessToken
},
data: file
};
return axios(requestConfig);
};