Syntax error in python on ubuntu server

=> input

from boltiot import Bolt
device_id = “BOLTXXXXXX”
mybolt = Bolt(api_key, device_id)
response = mybolt.isOnline()
print (response)

=> output

File “”, line 5
response = mybolt.isOnline()
SyntaxError: invalid syntax

plz help how to solve this error.

@nakuldubey0601 you’ve to change api_key and can find your api_key in “”>api section and device_id can be found in “”>device section

There is a typo in your code.
Your code : mybolt = Bolt((api_key,device_id)
Correct the code to : mybolt = Bolt(api_key,device_id)