WFM API RTAService

hello any one used WFMRTAService800:SetCurrentAgentState() method to set agent state in WFM ? if yes, can you help me whether I need to use locator service or not ?