...what you have to do is extend the TiledMapServiceLayer just like it's done in the sample click...
All WMTS servers operating in a procedure oriented architecture style and using HTTP SHALL specify with an ows:Constraint parameter the encodings that MAY be sent using HTTP GET or HTTP POST.