<s> import slack <EOL> import slack . http_client <EOL> def getPresence ( user ) : <EOL> """<STR_LIT>""" <EOL> params = { <EOL> '<STR_LIT>' : slack . api_token , <EOL> '<STR_LIT:user>' : user , <EOL> } <EOL> return slack . http_client . get ( '<STR_LIT>' , params ) <EOL> def info ( user ) : <EOL> """<STR_LIT>""" <EOL> params = { <EOL> '<STR_LIT>' : slack . api_token , <EOL> '<STR_LIT:user>' : user , <EOL> } <EOL> return slack . http_client . get ( '<STR_LIT>' , params ) <EOL> def list ( ) : <EOL> """<STR_LIT>""" <EOL> params = { '<STR_LIT>' : slack . api_token } <EOL> return slack . http_client . get ( '<STR_LIT>' , params ) <EOL> def setActive ( ) : <EOL> """<STR_LIT>""" <EOL> params = { '<STR_LIT>' : slack . api_token } <EOL> return slack . http_client . get ( '<STR_LIT>' , params ) <EOL> def setPresence ( presence ) : <EOL> """<STR_LIT>""" <EOL> if presence not in [ '<STR_LIT>' , '<STR_LIT>' ] : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> params = { <EOL> '<STR_LIT>' : slack . api_token , <EOL> '<STR_LIT>' : presence , <EOL> } <EOL> return slack . http_client . get ( '<STR_LIT>' , params ) </s>
