ChatterService.ChatterRestService.Follow C# (CSharp) Method

Follow() public method

public Follow ( string viewerId, string ownerId ) : ChatterResponse
viewerId string
ownerId string
return ChatterResponse
        public ChatterResponse Follow(string viewerId, string ownerId)
        {
            Dictionary<string, string> postParams = new Dictionary<string, string>();
            postParams.Add("subjectId", ownerId);
            return MakeUserRestCall(viewerId, "following", Method.POST, postParams);
        }

Usage Example

 public void TestRestFollow()
 {
     ChatterService.ChatterRestService service = new ChatterService.ChatterRestService(_url, _logService);
     service.Login(_client_id, _grant_type, _client_secret, _username, _password);
     service.Follow("005A0000001X3Nb", "005A0000001X2Yp");
 }
All Usage Examples Of ChatterService.ChatterRestService::Follow