static void DrawMember(Member member) { EditorGUILayout.BeginHorizontal("box"); EditorGUILayout.LabelField(member.role == 1 ? "開発者" : "テスター", member.name); if (GUILayout.Button("x")) { membersInfo = DeployGateAPI.DeleteMember(member); } EditorGUILayout.EndHorizontal(); }
public static MembersInfo DeleteMember(Member member) { DeployGatePreference preference = Asset.Load<DeployGatePreference>(); string url = string.Format(INVITE_API, preference.user.username, PlayerSettings.bundleIdentifier); #if UNITY_EDITOR_OSX Process process = new Process(); process.StartInfo.FileName = "curl"; process.StartInfo.Arguments = string.Format("-X DELETE -F \"users=[{0}]\" -F \"token={1}\" {2}",member.name,preference.user.token,url); process.Start(); process.WaitForExit(); #elif Debug.LogException(new NotImplementedException()); #endif return GetMembers(); }