Hey,
We are glad that you have decided to use the OwlBot API.
Your API token is: xxxxxxxx
Here is a sample curl request for you:
curl --header "Authorization: Token xxxxxxxxxxxxxxxx"
https://owlbot.info/api/v4/dictionary/owl -s | json_pp
Good Luck ?
or
[email protected]:~$ curl --header "Authorization: Token <YOUR_TOKEN>" https://owlbot.info/api/v4/dictionary/right -s | json_pp
B4X:
Sub Dictionary1 (jobnamekey As String, Word As String)
Dim job As HttpJob
Dim word_id As String = Word
Dim jobname As String = jobnamekey
Dim jobtag As String = Word
Dim app_id As String = SourceKey1 ' "Authorization: Token " & SourceKey1
job.Initialize(jobname, Me)
job.Tag = jobtag
Dim poststr As String = "https://owlbot.info/api/v4/dictionary/" & word_id & " -s | json_pp"
job.Download(poststr)
job.GetRequest.Setheader("Accept", "application/json")
job.GetRequest.SetHeader("Token", app_id)
job.GetRequest.SetContentEncoding("text/plain")
End Sub
Not sure how to set in the header and the url address to request. I have been trying many different headers and address to get it going but no luck.
Last edited: