Last updated
Last updated
HTTP verbs are the request methods we use along with the endpoints to access a particular api route.
One of the ways to make requests is to create PressListener for Button, in the example below I will demonstrate how to get the response of the request in a variable and display in a Label
Creating the packet to receive the response in order to handle the data obtained from the request
and now create the class to store the information
Now just put that pressListener on your button by changing only the endpoint and the verb, see the example below
See the complete API code remainder with TotalCross in .
Endpoint
Verbs
Action
/get
GET
Retrieves new information
/post
POST
Create new information
/put
PUT
Change an information
/delete
DELETE
Delete information