Can someone please share the example source code that, I have tried but not working based on documentation.