This method lists agents in Flexxii teams in the company. The list of agents belonging to the desired team can be listed by entering the “teamId” parameter.

Authorization header should be entered as “token_type” value, space character, “Access_token” value returned as a result of the token request.

private static IRestResponse GetTeamAgentList ()
     RestClient client = new RestClient(“https://api.flexxii.com/”);
     RestRequest request = new RestRequest("api/Subscribers/GetTeamAgentList", Method.GET);
     request.AddHeader("Content-Type", "application/json; charset=utf-8");
     request.AddParameter("teamId", teamId);
     request.AddHeader("Authorization", content_type + " " + access_token);

     IRestResponse response = client.Execute(request);
     return response;

Was this helpful?

0 / 0