Get users 401[Must provide a valid Client-ID or OAuth token]

The problem is your querystring, change ?client_id=XXX to &client_id=XXX

A ? separates the base part of the URL form the query string, and each parameter in the query string needs to be separated by an &