i need help to connect to this api
this is Documentation:
http://www.jazzradio.fr/api-docs
the website example is in php and i not understand
i have public-key and private-key
i tried volley
// Instantiate the RequestQueue.
RequestQueue queue = Volley.newRequestQueue(this);
String url ="http://www.jazzradio.fr/api/news";
// Request a string response from the provided URL.
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
// Display the first 500 characters of the response string.
tx.setText("Response is: "+ response.toString());
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
tx.setText("That didn't work!");
}
});
// Add the request to the RequestQueue.
queue.add(stringRequest);
the result:
{"error":{"code":401,"title":"Unauthorized #0"}}
how to send public-key and private-key to be authorized