Jump to content
Sign in to follow this  
Chris C.

Define a variable by the contents of an API request

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"
 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...