Rest Api Request Issue Fix
Бюджет ₹600-1500 INR
Job Description:
i have a api its working fine in Android studio project. but when trying to accessing throung postman or curl not working .
here is code android side code :
try{
HashMap params = new HashMap();
[login to view URL]("key1", "value");
[login to view URL]("key2", [login to view URL]("false"));
[login to view URL]("key3",[login to view URL]("true"));
JSONObject js = new JSONObject(params);
Log.e("Postdata",[login to view URL]());
JsonObjectRequest b = new JsonObjectRequest(1, "[login to view URL]", js, new [login to view URL]<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
Log.e("mydata",[login to view URL]());
}
}, new [login to view URL]() {
@Override
public void onErrorResponse(VolleyError error) {
}
});
[login to view URL]([login to view URL]).addToRequestQueue(b,"text");
}catch (Exception e){
[login to view URL]();
}
//CustomRequestQueus
public class CustomRequestQueues {
private static CustomRequestQueues mInstance;
Context context;
private RequestQueue requestQueue;
private CustomRequestQueues(Context context) {
[login to view URL] = context;
}
public static synchronized CustomRequestQueues getInstance(Context context) {
CustomRequestQueues m_rtoCustomRequestQueues;
synchronized ([login to view URL]) {
synchronized ([login to view URL]) {
synchronized ([login to view URL]) {
synchronized ([login to view URL]) {
synchronized ([login to view URL]) {
if (mInstance == null) {
mInstance = new CustomRequestQueues(context);
}
m_rtoCustomRequestQueues = mInstance;
}
return m_rtoCustomRequestQueues;
}
}
}
}
}
private RequestQueue getRequestQueue() {
if ([login to view URL] == null) {
[login to view URL] = [login to view URL]([login to view URL]);
}
return [login to view URL];
}
public <T> void addToRequestQueue(Request<T> request, String str) {
if ([login to view URL](str)) {
str = "R_CustomRequestQueue";
}
[login to view URL](str);
getRequestQueue().add(request);
}
}
7 фрилансеров(-а) готовы выполнить эту работу в среднем за ₹1166
May I know what issue you are facing. Hi, I am a Backend Architect with 10 years of experience I have worked mostly with early stage start-ups where in which I was involved in end to end product development cycle. Больше
I am Professional freelancer I work honestly and properly every work. I work to fiver and others such as Digital Marketing , Facebook Marketing , Web Design, Web development, graphic Design, you tube account crater et Больше
Hi I have over 6 years experience in web development, I can do it in a small time with 100% accuracy. It will be great moment working with you.