Closed ptheofan closed 1 year ago
Hi, I do not understand what I am doing wrong. I initialize the API client like this
const putioConfig = this.configService.get('putio'); this.api = new PutioAPI({ clientID: putioConfig.clientId, }); this.api.setToken(putioConfig.oAuthToken);
with this API when I call the Account.Info() it works perfectly as expected.
Account.Info()
const accountInfo = await putio.Account.Info(); this.logger.log(`Uploading as ${accountInfo.data.info.username}`);
However when I call the Files.Upload(...) I get 401
Files.Upload(...)
await api.Files.Upload({ file: absolutePath, fileName: filename, parentId: targetFolderId, });
is there some issue with the sdk or am I doing something wrong?
sdk
hey @ptheofan it's on me... 😞 working on a fix now!
should be fixed in v8.35.1
v8.35.1
Hi, I do not understand what I am doing wrong. I initialize the API client like this
with this API when I call the
Account.Info()
it works perfectly as expected.However when I call the
Files.Upload(...)
I get 401is there some issue with the
sdk
or am I doing something wrong?