Due Date: Friday April 28, 11pm (strict)
CrowdGrader URL: https://www.crowdgrader.org/crowdgrader/venues/view_venue/3082
Submission instructions: As usual
You have to build a simple internet-enabled application. Here is how it looks like:
The application has two buttons.
When you press the GET button, you have to make an HTTP GET call to the URL
https://luca-ucsc-teaching-backend.appspot.com/hw3/request_via_get
passing the value abracadabra
(exactly, no spaces) for the variable token
.
Your app will receive back a string value, which you have to display unchanged above the buttons.
If your app works correctly, the string will say "GET done correctly" (you should display the text you receive, not this text).
When you press the POST button, you have to make an HTTP POST call to the URL
https://luca-ucsc-teaching-backend.appspot.com/hw3/request_via_post
passing the value abracadabra
(exactly, no spaces) for the variable token
.
Your app will receive back a string value, which you have to display unchanged above the buttons.
If your app works correctly, the string will say "POST done correctly" (you should display the text you receive, not this text).
You might find the code of our AndroidPhoneHome application very useful.