I have been trying for hour every possible method on this forum but no luck. PLEASSE help I have the following server url
Here is my code:
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(url);
HttpResponse response;
try {
response = httpclient.execute(httpget);
HttpEntity entity = response.getEntity();
.
.
.
However i am always getting null values. When I check the StatusLineReturned code, it is saying error 401: Uauthorized.
I have no idea what is it that I am doing wrong? Why it won't just work!
Posting an answer from comments:
If you'll try to open it in browser, it says the same, so you need to authorize at first. Per docs at namara.io, you have to provide api_key.
just out of curriousity : can u try
if it doesnt work , maybe you need to use a post not get method