How to get the configurable attributes of a configurable product?

See also: