-
Notifications
You must be signed in to change notification settings - Fork 0
2. Exporting Data (Smartling)
Now that the application is configured open the application in Visual Studio and run it. You should see the Swagger UI launch in the browser.
Lets get the token using the AppKeyValue.
Expand the Security GetToken API and click "Try It Out". Paste your App Key into the AppKeyValue prop i.e
Click "Execute" and copy the token value in the resulting response body.
Now lets authorize swagger so that we can check database connectivity. Click on the "Authorize" button at the top of the swagger page. It's important to include the word "Bearer" then a space before pasting in you token. Click "Authorize".
Expand the CommonService CheckConnectivity API and click "Try It Out". Review the response body. A successful connection to your database should contain a LogEnties array with an entry for each database you have configured. If your configuration is correct you should see the message below.
"Message": "<YOUR_DATABASE_NAME> could connect successfully",
If you have already configured the Smartling settings for your Smartling account and project, you can now use the export API. This will create a job, or number of jobs depending on the size of your export, on smartling and attach the files. If you want to see what will be sent before actually sending the data you can open DbLocalizer/Entities/Plugins/TranslationManagement/Smartling/SmartlingExportUtility.cs and place a breakpoint here
Each ExportPackage has a JsonOutput property that contains the raw json export data. You can view an example of the json output here