private void LogIn() { LogIn_Request logInRequest = new LogIn_Request(); logInRequest.email = user.text; logInRequest.password = pass.text; string logInJson = JsonUtility.ToJson(logInRequest); _httpRequester.PostJsonWithToken(_url, logInJson, ShowToken, token); }
private void SendCompletedForms() { Form_list newJson = new Form_list(); newJson.form_list = new List <Form>(); foreach (Form form in appData.GetCompletedForms()) { newJson.form_list.Add(form); } string jsonCode = JsonUtility.ToJson(newJson); httpRequester.PostJsonWithToken(url_FormsCompletedPost, jsonCode, Debug.Log, appData.token); }