public void createUserItem(ItemUserModel userItem) { WWWForm form = new WWWForm(); form.AddField("user_id", userItem.user_id); form.AddField("item_id", userItem.item_id); form.AddField("status", userItem.status); httpHandlerScript.POST(Config.apiUrl + "itemsUsers/store", CallBackCreate, form); }
void CallBackSetBroken(string response) { if (response == "") { return; } ItemUserModel userItem = JsonUtility.FromJson <ItemUserModel>(response); print(userItem); }
void CallBackCreate(string response) { print(response); if (response == "") { return; } ItemUserModel itemUser = JsonUtility.FromJson <ItemUserModel>(response); print(itemUser); }