![]() ![]() Alternatively, your query can be attached to the end of the url as "?x=", followed by whatever number you want to square. ![]() Entering a number in the form and clicking "Re-send API Request" will return the square of the number you input. You can check out this form yourself by going here. It is, however, more complicated, so we will put off this topic until later.) CloudDeployĮvaluating this will output a hyperlink that leads to an API web form that looks like this: (Side note: It is possible to access a private API function via a smartphone app. However, since we want this function accessible to our Android device, the Permissions option should be set to "Public". We'll just return our output as a String here.ĭeploying this function is very similar to any other APIFunction. Output - This is the type of data we want to return.Function - This is a pure function that referenced the input symbol defined in (1).Here, our function will take one input, a number, and it will be refered to as "x". Input - This is defined using an association.Creating the Cloud APIįirst, we need to create and deploy the API function that will be used by the app. Squaring a number is an extremely simple use of the Cloud, but this tutorial should open the way to more complex ones later on. This is intended to be a tutorial for anyone who has not made a mobile app utilizing the Wolfram Cloud or is having trouble implementing that functionality into their own applications. Here, I am going to go through detailed walkthrough that will end with a fully functional Android application that can square a number given by the user. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |