How to fetch details about direct messages



We are in the way of developing customized interface to access the twitter data. As part of this, we would like to find the way to get the details about the “direct messages”. Can anybody help me to achieve the same.

Few more points on this.

  1. I am able to see “Direct messages” icon on the twitter main page. this is usually on the right side top corner. The same kind of functionality we would like to implement in our interface.

Thanks in-advance.