html - How to get random word using Wordnik API in Javascript? -
i trying create hangman game using html , javascript , word wondering how might able random word using wordnik api.
i not understand how word , homecoming in. i've registered apikey, maintain getting confused on how ajax , json part of api , how combines javascript.
according quick search of docs, should able list of random words via:
http://api.wordnik.com:80/v4/words.json/randomwords?hasdictionarydef=true&mincorpuscount=0&minlength=5&maxlength=15&limit=1&api_key=a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5
effectively, you're looking list of random words, limit of 1 word (limit=1
).
obviously, utilize own api_key
rather demo key provided in documentation.
references:
/words.json/randomwords
. javascript html api wordnik
No comments:
Post a Comment