TRENTON, N.J. (AP) — A New Jersey appeals court has ruled that law enforcement agencies can view private messages and tweets posted on Twitter.

The court on Thursday ruled in favor of Essex County prosecutors who attempted to access video posts from two unidentified Twitter profiles. The court ruled that law enforcement needs to obtain a communications data warrant in order to view material.

READ MORE: Rhys Hoskins, Darick Hall Homer, Lead Phillies Past Nolan Arenado, Cardinals

Essex County officials argued they were trying to access audio that had already been transmitted as opposed to live transmissions. A wiretapping warrant, which is more difficult to secure, is needed for electronic communications in transit.

READ MORE: 2022 Wawa Welcome America Festival Guide: Road Closures, Public Transportation Information

Defense attorney Lawrence Lustberg, who participated in arguments, agreed with the ruling but said that some Twitter conversations happen in real time.

MORE NEWS: CBS3 SummerFest: Catch The Ocean Breeze Without Sitting On Sand With Atlantic City Cruises

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)