Using httpClient As New HttpClient
Using request As New HttpRequestMessage(New HttpMethod("POST"), "https://wsapi.simsimi.com/190410/talk")
request.Headers.TryAddWithoutValidation("x-api-key", "PASTE_YOUR_PROJECT_KEY_HERE")
request.Content = New StringContent("{""utext"":""hello there"",""lang"":""en""}", Encoding.UTF8, "application/json")
Dim response = await httpClient.SendAsync(request)
End Using
End Using
الكود يطلب منك وضع المفتاح الخاص بك بدلا من PASTE_YOUR_PROJECT_KEY_HERE
Using request As New HttpRequestMessage(New HttpMethod("POST"), "https://wsapi.simsimi.com/190410/talk")
request.Headers.TryAddWithoutValidation("x-api-key", "PASTE_YOUR_PROJECT_KEY_HERE")
request.Content = New StringContent("{""utext"":""hello there"",""lang"":""en""}", Encoding.UTF8, "application/json")
Dim response = await httpClient.SendAsync(request)
End Using
End Using
الكود يطلب منك وضع المفتاح الخاص بك بدلا من PASTE_YOUR_PROJECT_KEY_HERE
