- General Information
- Connecting Third-party Systems
- crossConnect for content systems
- crossConnect for External Editing
- Purpose and usage
- Requirements
- Implementation
- Across XLIFF format
- Across-specific Extensions
- <xliff> Element Attributes
- <file> Element Extensions
- <trans-unit> Element Extension
- Paragraph States
- Paragraph State Flags
- <source> and <target> Element Content
- <bpt> Element Attributes
- <ph> Element Attributes
- <x> Element Attributes
- Across-specific Properties
- Analysis Results
- Sample Files
- Across XLIFF - import, export and segmentation
- Context information
- Exporting best matches in Across XLIFF
- Hyperlinks to XLIFF
- Secure file handling with C#
- Secure file handling with JAVA
- Workflow and vendor configuration
- Sample code - Integrated solution
- Across XLIFF format
- Generic File Connector
- Display Texts
- APIs
- APIs - Technology
- crossTank API v1
- crossTank API v2
- crossTerm API v1
- crossTerm API v2
- crossAPI SI
- Requirements
- Function Return Types
- crossAPI SI and Java
- List of Objects in crossAPI SI
- Sample - transferring checkout files via FileManager
- Sample - VBS
- Text Preprocessing API
C# Example
The following example shows an API usage basis developed on C#.
- Proceed as follows to make use of and reproduce the example:
- Download the example file from here and extract it to a separate folder.
- Open the App.config file included in the example and adjust it as follows:
- Change the ServerContextGuid to the local server context GUID (it is equal to the installation GUID).
- Change AcrossIdentityServerUrl to the address of your Across Identity Server.
- Change CrossTankAPIUrl to the address of your crossTank API.
- Adjust CrossTankAPIClientId to the configured client ID from appsettings.json.
- Adjust UserName to the required user name.
- Adjust UserPassword to the required user password.
- Save the file.
- Adjust the appsettings.json file as follows (see also Authentication basics):
"Clients": [ { "ClientName": "CrossTank API Tests", "ClientId": "CrossTankAPI.Tests", "AlwaysIncludeUserClaimsInIdToken": "true", "AllowAccessTokensViaBrowser": "true", "AllowedScopes": [ "openid", "profile", "email", "rights", "crosstank.api.readonly", "crosstank.api.writeonly" ], "RemoveNonLicensedApiScopes": [ "crosstank.api.writeonly" ], "RequireClientSecret": "false", "AllowedGrantTypes": [ "password" ] } ],
- Open the ApiExample.sln file in Microsoft Visual Studio 2017 or later and compile it.