Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 2.62 KB

README.md

File metadata and controls

57 lines (44 loc) · 2.62 KB

memoQ server Web Services API sample code

This is a minial example to help you get started using memoQ server's Web Service API. The script-like code in Program.cs executes the following tasks:

  • Creates a user and sets its password
  • Creates a translation memory
  • Creates a new project (deleting old project with same name if it exists)
  • Assigns the TM to the project
  • Uploads a DOCX file in chunks and imports it into the project for translation
  • Pre-translates the document
  • Calculates a fuzzy analysis and fetches the result as a CSV string
  • Assigns the document to the user

To try the code yourself

Check out the repository and edit two constants at the top of Program.cs:

const string baseUrl = "https://my-memoq-server.com/memoqservices";
const string apiKey = "<my API key>";

Replace the URL with your memoQ server's URL, and insert your own API key. You can find the API key in the Server Administrator:

logo

Running the code:

  • On Windows, open the solution in Visual Studio and start debugging
  • On Linux:
dotnet restore
dotnet run

Nasty .NET Core details

Don't have a memoQ server at hand?

You can get a free one-month trial at https://www.memoq.com/en/memoq-cloud-server.

Also, give us a holler over any of the channels under Contact Us. We love to talk about translation and technology.