added post to user sample code
domain url passed in config array and some fixes