How to get the options of the configurable attributes for a configurable product?

See also: