php - Android laravel passport -
i trying retrieve token laravel passport no response, code..
login
public void gettoken(){ final string url = "http://10.96.2.159/chat/public/oauth/token"; stringrequest str = new stringrequest(request.method.post, url, new response.listener<string>() { @override public void onresponse(string response) { msgresponse.settext("work!"); } } , new response.errorlistener() { @override public void onerrorresponse(volleyerror error) { } }){ @override protected map<string, string> getparams() throws authfailureerror { map<string,string> params = new hashmap<string, string>(); params.put("client_id","2"); params.put("client_secret","token"); params.put("grant_type","password"); params.put("username","user1@tracer.com"); params.put("password","anu12345"); return params; } }; }
thanks
Comments
Post a Comment