<html><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:14px"><div class="" id="yui_3_16_0_1_1437656428675_4913" style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"><div class="" role="presentation" tabindex="0" id="yui_3_16_0_1_1437656428675_4878" style="width: 1603.33337402344px; padding: 0px 27px;"><div class="" id="yui_3_16_0_1_1437656428675_4919"><div id="yiv7407532669" class=""><div id="yui_3_16_0_1_1437656428675_4918" class=""><div id="yui_3_16_0_1_1437656428675_4917" style="font-family: garamond, 'new york', times, serif; font-size: 14px;" class=""><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" class="">Hi, there, </div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" class=""><br id="yui_3_16_0_1_1437656428675_5124" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" class="">I am new in this domain so pls help me even my question looks too naive. </div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" class=""><br id="yui_3_16_0_1_1437656428675_5128" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" class=""><br id="yui_3_16_0_1_1437656428675_5131" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" class="">What I want to do is as below:</div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" class=""><br id="yui_3_16_0_1_1437656428675_5135" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class="">1) Add a user with RESTful API . </div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class="">2) get the token with direct access grant .</div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5140" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5143" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class="">All above will happen with program. </div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5147" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class="">We can add a user , but can not get the token . It seems the user can not login in . </div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5151" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class="">We missed something ?</div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5155" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class="">Is there any example code ?</div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5159" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5162" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class="">Thanks in advance. </div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5166" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class=""><br id="yui_3_16_0_1_1437656428675_5169" class=""></div><div id="yiv7407532669yui_3_16_0_1_1437652615751_6070" dir="ltr" class="">Mai</div><div dir="ltr" id="yui_3_16_0_1_1437656428675_5172" class=""><br id="yui_3_16_0_1_1437656428675_5174" class=""></div></div></div></div></div></div><div class="" id="yui_3_16_0_1_1437656428675_5176"></div></div></div></body></html>