|
UsingGetLocalizationWithcURL
Using cURL to upload file to Get Localization
Featured Note that all the literal within the curly brace are variables {username} : Username in GetLocalization {password} : Password in GetLocalization {productname} : Product name in GetLocalization {filepath} : Local filepath {local_zipfilename} : The zip file name after generated Note that all the API calls will return the status code of 200 with message in plain text depending on the situations. Currently only plain text message is supported in the returned value. There is only one exception with status code of 401 when the username or password is incorrectly specified. Updating master filecurl --form file=@{filenpath} --user {username}:{password} https://www.getlocalization.com/{productname}/api/update-master Returned messages (status code 200)
Creating new master filecurl --form file=@{filenpath} --user {username}:{password} https://www.getlocalization.com/{productname}/api/create-master/{platform_code}/{iana_code} For the platform code, please review below Returned messages (status code 200)
To generate zip file from the projectNote that the {local_zipfilename} must be specified in order to create zip file from the project. curl --user {username}:{password} https://www.getlocalization.com/{productname}/api/translations/zip -o {local_zipfilename} The platform code table
|