kwz219 / Text-Translation-API-V3-Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translator Text API V3 - .NET Core Samples, Java

This repository includes Java samples for Microsoft Translator. Each sample corresponds to a Quickstart activity on doc.microsoft.com, including:

Prerequisites

Code samples

This repository includes a sample for each of the methods made available by the Microsoft Translator Text API v3. To use each of the samples, follow the instructions below.

Important note: The directory for each sample includes a Gradle build configuration.

  • Create a working directory for your project. For example: mkdir sample-project.
  • Initialize your project with Gradle: gradle init --type basic. When prompted to choose a DSL, select Kotlin.
  • Update build.gradle.kts with the configuration provided in the sample directory.
  • Create a Java file and copy in the code from the provided sample. Don't forget to add your subscription key.
  • Run the sample: gradle run.

Resources

About

License:Other


Languages

Language:Java 84.0%Language:Kotlin 16.0%