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

servoWrite():
- 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:
https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/servoWrite?pin=1&value=90&deviceName=BOLT1257632

connections