Servo with PushButton

Good afternoon,
I want to control the servo with the button at thinger.io, but I confused about the code. I’ve tried it on hardware, and it’s work. but I was confused when connecting with the thinger. can anyone help?