Issue in getting access token


#1

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 : “https://dev.twitter.com/docs/auth/application-only-auth”.
Please point me to some direction to resolve this issue.

Regards