Servo motor with bolt iot

Hi .I want to interface bolt iot module with servo motor i am confused about the code as well as hardware connections please help

servo motor has three pins VCC, GND and signal. It works with GPIO pins.
-signal wire should be connected to one of the digital pin(0,1,2,3,4)
-Use the function

- It can take a value between 0-180
- for example :
servoWrite(0,60); // 0 is the digital pin you had connected and 60 is the angle
- this is the API URL looks like: