Skip to content

sangkyu-kim/ncloud-ainaver-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2bfcae0 · Oct 11, 2021

History

2 Commits
Oct 11, 2021
Oct 11, 2021
Oct 11, 2021
Oct 11, 2021
Oct 11, 2021

Repository files navigation

Go SDK AI NAVER API Client for NAVER CLOUD PLATFROM

Examples

client := NewClient(os.Getenv("AINAVER_CLIENT_ID"), os.Getenv("AINAVER_SERCRET_KEY"))
ctx := context.Background()

response, err := client.PostTranslation(ctx, &PostTranslation{
    Source:    "en",
    Target:    "ko",
    Text:      "glad to meet you",
    Honorific: true,
})

if err != nil {
    log.Fatal(err)
}

log.Printf("Output: %+v", response)

if response.Message.Result.TranslatedText != "만나서 반가워요." {
    t.Fail()
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages