snigdha snigdha - 1 month ago 5
Java Question

how to pass 2 parameters in Get method using java

My URL is like -

https://api.insideview.com/api/v1/people/abcdef?active=true

here the arguments passed are people=abcdef and active=true

How can I incorporate both the parameters using get method-

My code is like-

public PeopleDetailInstance peopledetail(String peopleId) {
HttpClient client = new HttpClient();
GetMethod method = new GetMethod("https://api.insideview.com/api/v1/people/"+peopleId);

Answer

... peopledetail(String peopleId, Boolean active) { HttpClient client = new HttpClient(); GetMethod method = new GetMethod("https://api.insideview.com/api/v1/people/"+peopleId + "&active=" + active)

Edit - sorry by the bad format. Im in phone.

Comments