execute a function when a button is pressed

Dependencies:   mbed

no such method: requests