Jump to content

Define a variable by the contents of an API request


Chris C.
 Share

Recommended Posts

How could I: Take text from a textbox and put it in here https://api.roblox.com/Ownership/HasAsset?userId=TEXTBOXIMPUT&assetId=2794804035 where it says "TEXTBOXIMPUTwhen a button with the text "Check" it checks the output of that API and if the output is "true" then log "success" in console, if the output is "false" display a fail message. The button may be pressed until it is "true"
 

Link to comment
Share on other sites

This looks a little sparse, but if you're using JavaScript, you should be able to create an AJAX request and send off the request.

This tutorial will give you a good overview on how to create an AJAX request, and to respond based on the data returned.

https://www.w3schools.com/xml/ajax_intro.asp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...