Issue in getting access token


I am trying to generate a access token for authenticating my request for media upload using rest API.
But I am always getting “403 Forbidden: The server understood the request, but is refusing to fulfill it.”.
I am following steps mentioned here : “”.
Please point me to some direction to resolve this issue.