How to get configurable product options and attributes

How to get configurable product options and attributes