Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 522 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 522 Bytes

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()
}