-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: add callback url to job params #94
Conversation
Hi @fllprbt, it appears Files API doc is wrong about having This param should be removed from the
And then you probably can save it as you need (didn't dig deeper, I just checked this sdk method returns exactly the same content as curl/postman call) |
For now, it supports receiving raw response body as |
Hi All, P.S. @conall-smartling for visibility. There are a couple of related tickets #89, #92. |
Right, i also had such glyphs back when i had tested it; had tried to parse it then as zip and failed but did not investigate it much... |
@PavelLoparev could you review this MR please? Added also the list batches helper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @fllprbt, could you please remove zipFileName
query parameter from DownloadFileAllTranslationsParameters
class?
looks ok other than that
done! |
@fllprbt Sorry overlooked one thing. The list batches endpoint also receives query parameters. As I see list batches method only receives project id so it's not possible to get all the batches without pagination for now. I think parameters class with available pagination parameters and filters should be added. |
* remove breking test for downloadAllTranslation zipFileName removed param
Done. Btw we would like eventually have something similar here: https://github.com/Smartling/api-sdk-nodejs/blob/master/api/jobs/index.ts#L57C63-L57C85 Since a params object can be passed, does it mean that we can use |
yes, you can use |
|
Hi, the |
Sorry, missed that from docs. Can fix myself this Friday if no anyone else does |
I can do it but i'm stucked here #95 |
This is going to be addressed in #100 |
As for downloading zip: #117 |
@PavelLoparev regarding commit #2 (change endpoint to download all files translations): Even after the fix, I did not manage to write a
.zip
to my filesystem although I did not dig much into the code. Is writing non-raw responses supported atm? If not, do you have any plan of working on it in the near future?For now, I consider it out of this MR's scope (no time) and will fetch translations separately by locales.
Let me know, thanks!