The ConnectApi namespace
(also called Chatter in Apex) provides classes for accessing the same data available in Chatter REST API. Use Chatter in Apex to create custom Chatter experiences in Salesforce.
For information about working with the ConnectApi classes, see Chatter in Apex.