Web API - Armies

From Firefall Wiki
Jump to: navigation, search
Usage

ingame_host.."/armies"

Outputs
<!DOCTYPE html>
<html>
<head><script type="text/javascript">var NREUMQ=NREUMQ||[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);</script>
<meta charset="utf-8" />
<title>Firefall - Armies V2</title>
<link href="/assets/in-game/armies_v2-d8de6c49b953ffc43a3fe3532943ca31.css" media="screen" rel="stylesheet" type="text/css" />

<script src="/assets/in-game/armies_v2-cb52f1643f9240621e2eb89eff1cdec5.js" type="text/javascript"></script>

<script>window.gon = {};gon.page_obj={"panel_title":"Armies","panel_id":"empty","tabs":[{"active":true,"text":"Army list","path":"/armies","class":"tab_icon_armies"},{"active":false,"text":"Applications","path":"/armies/character_applications","class":"tab_icon_activities"}],"actions_path":{"armies":"/armies","new_armies":"/armies/new","search_armies":"/armies/search","character_army_applications":"/armies/character_applications","apply_character_army_applications":"/armies/character_applications/apply","join_character_army_applications":"/armies/character_applications/join","reject_character_army_applications":"/armies/character_applications/reject"},"top_nav":{"show_army_invite_btn?":false,"show_army_create_btn?":true,"show_search_box?":true,"show_create_new_rank?":false},"character":{"is":{"army_commander?":false,"army_officer?":false},"can":{"edit?":false,"invite?":false,"edit_motd?":false,"create_rank?":false}},"locale":{"when":"When","yes":"Yes","no":"No","army_name":"Army Name","message_of_the_day":"Message of the day","members":"Members","focus":"Focus","intensity":"Intensity","playstyles":{"Casual":"Casual","Hardcore":"Hardcore","Moderate":"Moderate"},"recruiting":"Recruiting","commander":"Commander","create_new_rank":"Create New Rank","invite_new_members":"Invite New Members","create_army":"Create Army","search_army":"Search Army Name or Tag","message_optional":"Message [Optional]","apply":"Apply","tag":"Tag","establish_army":"Establish army","are_sure_leave_army":"Are you sure you want to leave this Army?","confirm":"Confirm","cancel":"Cancel","frame":"Frame","name":"Name","rank":"Rank","status":"Status","message":"Message","accept_cancel":"Accept/Cancel","accept":"Accept","delete":"Delete","send_invite_to":"Send Invite To","send_invite":"Send Invite","join_reject":"Join/Reject","join":"Join","reject":"Reject","title":"Title","invite":"Invite","edit":"Edit","kick":"Kick","promote":"Promote","move_up":"Move Up","move_down":"Move Down","rank_name":"Rank Name","rank_permissions":"Rank Permissions","can_invite":"Can Invite?","can_edit":"Can Edit?","can_kick":"Can Kick?","can_promote":"Can Promote?","update":"Update","create_new":"Create New","who_take_over_commander":"Who will be taking over the role of commander?","are_sure_disband_army":"Are you sure you want to disband this army?","enter_army_name":"Enter Army Name","enter_mission_statement":"Enter your Mission Statement","mission_statement":"Mission Statement","army_details":"Army Details","playstyle":"Playstyle","disband_army":"Disband Army","update_army":"Update Army","establish":"Establish","modify_army":"Modify Army","apply_to_this_army":"Apply to this Army"},"page_id":"army_index","next_page_url":"/armies.json?page=2&per_page=20","in_army?":false,"army_list":{"page":"1","total_count":14722,"results":[{"commander":"ScytheRyder","link":"/armies/2124721","name":"Standard of War!","personality":"Casual","playstyle":"pve","is_recruiting_str":"Yes","member_count":1,"is_recruiting":true},{"commander":"Tiika","link":"/armies/2124521","name":"Whiskey Tango","personality":"Casual","playstyle":"pve","is_recruiting_str":"No","member_count":1,"is_recruiting":false},{"commander":"Gigssy89","link":"/armies/2124421","name":"Roflmonkeys","personality":"Casual","playstyle":"pve","is_recruiting_str":"No","member_count":2,"is_recruiting":false},{"commander":"Rayndys","link":"/armies/2124321","name":"Xenotation","personality":"Moderate","playstyle":"pve","is_recruiting_str":"No","member_count":3,"is_recruiting":false},{"commander":"shaz0r","link":"/armies/2124221","name":"High X-Rated League","personality":"Moderate","playstyle":"pve","is_recruiting_str":"No","member_count":3,"is_recruiting":false},{"commander":"Kapy","link":"/armies/2124121","name":"Raven Squad","personality":"D\u00e9contract\u00e9","playstyle":"pve","is_recruiting_str":"Yes","member_count":1,"is_recruiting":true},{"commander":"Maelideth","link":"/armies/2124021","name":"The Synclaire Firm","personality":"Casual","playstyle":"pve","is_recruiting_str":"Yes","member_count":1,"is_recruiting":true},{"commander":"Daigonx","link":"/armies/2123921","name":"Employers","personality":"Casual","playstyle":"pve","is_recruiting_str":"Yes","member_count":1,"is_recruiting":true},{"commander":"ProPope","link":"/armies/2123821","name":"No Big Deal","personality":"Moderate","playstyle":"pve","is_recruiting_str":"Yes","member_count":4,"is_recruiting":true},{"commander":"SinisterSly","link":"/armies/2123721","name":"Branch 0420","personality":"Casual","playstyle":"pve","is_recruiting_str":"Yes","member_count":1,"is_recruiting":true},{"commander":"firebol","link":"/armies/2123621","name":"@NL","personality":"Casual","playstyle":"pve","is_recruiting_str":"Yes","member_count":2,"is_recruiting":true},{"commander":"PATRIUS","link":"/armies/2123521","name":"EQUINOXE","personality":"D\u00e9contract\u00e9","playstyle":"pve","is_recruiting_str":"Yes","member_count":1,"is_recruiting":true},{"commander":"DrakeReturnZ","link":"/armies/2123421","name":"Oath","personality":"Moderate","playstyle":"pve","is_recruiting_str":"Yes","member_count":1,"is_recruiting":true},{"commander":"Psynergi","link":"/armies/2123321","name":"Wreckerz","personality":"Moderate","playstyle":"pve","is_recruiting_str":"No","member_count":1,"is_recruiting":false},{"commander":"Thazea","link":"/armies/2123221","name":"TunnelSnakes","personality":"Casual","playstyle":"pvp","is_recruiting_str":"No","member_count":5,"is_recruiting":false},{"commander":"Sethem","link":"/armies/2123121","name":"Masters Of Madness","personality":"Hardcore","playstyle":"pve","is_recruiting_str":"Yes","member_count":2,"is_recruiting":true},{"commander":"LemonAle","link":"/armies/2122821","name":"army of whore","personality":"Casual","playstyle":"pve","is_recruiting_str":"No","member_count":2,"is_recruiting":false},{"commander":"Pr3d4tory","link":"/armies/2122721","name":"GermanElite","personality":"Moderate","playstyle":"pvp","is_recruiting_str":"No","member_count":3,"is_recruiting":false},{"commander":"Cleth","link":"/armies/2122621","name":"LAIR","personality":"Casual","playstyle":"pve","is_recruiting_str":"No","member_count":1,"is_recruiting":false},{"commander":"DESPERiA","link":"/armies/2122521","name":"Ever17","personality":"Moderate","playstyle":"pve","is_recruiting_str":"Yes","member_count":1,"is_recruiting":true}]}};</script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="OUIF1URYR2TPyfrsx6/ORAV06nNeOsZoLdrbd8oNH+4=" name="csrf-token" />
</head>
<body>

<div id='horizon'>
  <div id='content_container'>
  	<div id="army_index" class="box_v3 ui_panel army_panel">
			<div class="box_inner">
				<h2 class="box_title">Armies</h2>
				<ul class="tabs_horizontal_v1">
		<li class="tab_li active">
			<a href="/armies" class="tab_a tab_icon_armies">
				<span>Army list</span>
			</a>
		</li>
		<li class="tab_li ">
			<a href="/armies/character_applications" class="tab_a tab_icon_activities">
				<span>Applications</span>
			</a>
		</li>
</ul>
				<div class="top_nav_utils">



		<a id='army_create_button' class='btn_v3 btn_v3_blue' href='/armies/new'>Create Army</a>

	<form class="search_box" accept-charset="UTF-8" action="/armies/search" method="get">
		<input type="text" name="q" placeholder="Search Army Name or Tag" value="" />
	</form>

</div>
				<div class="container">
					
<div class="scrollable_area">
	
	<table id="army_list_table" class="fixed_thead highlight" data-next-page-url="/armies.json?page=2&per_page=20">
		<thead>
			<tr>
				<th>Army Name</th>
				<th>Members</th>
				<th>Focus</th>
				<th>Intensity</th>
				<th></th>
				<th>Commander</th>
			</tr>
		</thead>
		<tbody>
				<tr>
					<td><a href="/armies/2124721"> Standard of War!</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>ScytheRyder</td>
				</tr>				<tr>
					<td><a href="/armies/2124521"> Whiskey Tango</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>Tiika</td>
				</tr>				<tr>
					<td><a href="/armies/2124421"> Roflmonkeys</a></td>
					<td>2</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>Gigssy89</td>
				</tr>				<tr>
					<td><a href="/armies/2124321"> Xenotation</a></td>
					<td>3</td>
					<td>pve</td>
					<td>Moderate</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>Rayndys</td>
				</tr>				<tr>
					<td><a href="/armies/2124221"> High X-Rated League</a></td>
					<td>3</td>
					<td>pve</td>
					<td>Moderate</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>shaz0r</td>
				</tr>				<tr>
					<td><a href="/armies/2124121"> Raven Squad</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Décontracté</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>Kapy</td>
				</tr>				<tr>
					<td><a href="/armies/2124021"> The Synclaire Firm</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>Maelideth</td>
				</tr>				<tr>
					<td><a href="/armies/2123921"> Employers</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>Daigonx</td>
				</tr>				<tr>
					<td><a href="/armies/2123821"> No Big Deal</a></td>
					<td>4</td>
					<td>pve</td>
					<td>Moderate</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>ProPope</td>
				</tr>				<tr>
					<td><a href="/armies/2123721"> Branch 0420</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>SinisterSly</td>
				</tr>				<tr>
					<td><a href="/armies/2123621"> @NL</a></td>
					<td>2</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>firebol</td>
				</tr>				<tr>
					<td><a href="/armies/2123521"> EQUINOXE</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Décontracté</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>PATRIUS</td>
				</tr>				<tr>
					<td><a href="/armies/2123421"> Oath</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Moderate</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>DrakeReturnZ</td>
				</tr>				<tr>
					<td><a href="/armies/2123321"> Wreckerz</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Moderate</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>Psynergi</td>
				</tr>				<tr>
					<td><a href="/armies/2123221"> TunnelSnakes</a></td>
					<td>5</td>
					<td>pvp</td>
					<td>Casual</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>Thazea</td>
				</tr>				<tr>
					<td><a href="/armies/2123121"> Masters Of Madness</a></td>
					<td>2</td>
					<td>pve</td>
					<td>Hardcore</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>Sethem</td>
				</tr>				<tr>
					<td><a href="/armies/2122821"> army of whore</a></td>
					<td>2</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>LemonAle</td>
				</tr>				<tr>
					<td><a href="/armies/2122721"> GermanElite</a></td>
					<td>3</td>
					<td>pvp</td>
					<td>Moderate</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>Pr3d4tory</td>
				</tr>				<tr>
					<td><a href="/armies/2122621"> LAIR</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Casual</td>
					<td>
						<div class="red_cell">
							No
						</div>
					</td>
					<td>Cleth</td>
				</tr>				<tr>
					<td><a href="/armies/2122521"> Ever17</a></td>
					<td>1</td>
					<td>pve</td>
					<td>Moderate</td>
					<td>
						<div class="green_cell">
							Yes
						</div>
					</td>
					<td>DESPERiA</td>
				</tr>		</tbody>
	</table>
	
</div>

<script type="text/x-mustache-template" id="army_list_table_row" >
<tr>
	<td><a href="{{link}}">{{tag}} {{name}}</a></td>
	<td>{{member_count}}</td>
	<td>{{playstyle}}</td>
	<td>{{personality}}</td>
	<td>
		<div class="{{#is_recruiting}}green_cell{{/is_recruiting}}{{^is_recruiting}}red_cell{{/is_recruiting}}">
			{{is_recruiting_str}}
		</div>
	</td>
	<td>{{commander}}</td>
</tr>
</script>
				</div>
			</div>
			<div id="panel_spinner" class="panel_spinner" style="display: none;"></div>
			<span class="close_btn">×</span>
		</div>
  </div>
</div>

<script type="text/x-mustache-template" id="army_applications_new_tpl" ><form accept-charset="UTF-8" action="{{actions_path.army_applications}}" method="POST" class="form">
	<div class="errors"></div>
	<div class="field_wrapper">
		<label class="label" for="character_name">{{locale.send_invite_to}}:</label>
		<div class="input">
			<input type="text" name="character_name" />
		</div>
	</div>
	<div class="field_wrapper">
		<label class="label" for="message">{{locale.message_optional}}:</label>
		<div class="input">
			<textarea name="message"></textarea>
		</div>
	</div>

	<div class="btn_wrapper">
		<button class="submit btn_v3 btn_v3_blue pull-right">{{locale.send_invite}}</button>
	</div>
</form></script>
<script type="text/x-mustache-template" id="army_apply_new_tpl" ><form accept-charset="UTF-8" action="{{actions_path.apply_army}}" method="POST" class="form">
	<div class="errors"></div>
	<div class="field_wrapper">
		<label class="label" for="message">{{locale.message_optional}}:</label>
		<div class="input">
			<textarea name="message"></textarea>
		</div>
	</div>

	<div class="btn_wrapper">
		<input type="hidden" name="character_guid" value="{{character.guid}}" />
		<input type="hidden" name="army_id" value="{{army.id}}" />
		<button class="submit btn_v3 btn_v3_blue pull-right">{{locale.apply}}</button>
	</div>
</form></script>
<script type="text/x-mustache-template" id="army_ranks_new_tpl" ><form accept-charset="UTF-8" action="{{actions_path.army_ranks}}{{#id}}/{{id}}{{/id}}" method="POST" class="form">
	<div class="errors"></div>
	
	<div class="field_wrapper">
		<label class="label" for="rank[name]">{{locale.rank_name}}:</label>
		<div class="input required">
			<input type="text" name="rank[name]" value="{{name}}" />
		</div>
	</div>

	<div class="field_wrapper">

		<div class="label">{{locale.rank_permissions}}:</div>
		<div class="inputs_table_wrapper">
			<table>
				<tbody>
					<tr>
						<td>{{locale.can_invite}}</td>
						<td>
							<div class="input radio_buttons required">
								<label class="radio"><input class="radio_buttons required" name="rank[can_invite]" type="radio" value="true" {{#can_invite}}checked="checked"{{/can_invite}}>{{locale.yes}}</label>
								<label class="radio"><input class="radio_buttons required" name="rank[can_invite]" type="radio" value="false" {{^can_invite}}checked="checked"{{/can_invite}}>{{locale.no}}</label>
							</div>
						</td>
					</tr>
					<tr>
						<td>{{locale.can_edit}}</td>
						<td>
							<div class="input radio_buttons required">
								<label class="radio"><input class="radio_buttons required" name="rank[can_edit]" type="radio" value="true" {{#can_edit}}checked="checked"{{/can_edit}}>{{locale.yes}}</label>
								<label class="radio"><input class="radio_buttons required" name="rank[can_edit]" type="radio" value="false" {{^can_edit}}checked="checked"{{/can_edit}}>{{locale.no}}</label>
							</div>
						</td>
					</tr>
					<tr>
						<td>{{locale.can_kick}}</td>
						<td>
							<div class="input radio_buttons required">
								<label class="radio"><input class="radio_buttons required" name="rank[can_kick]" type="radio" value="true" {{#can_kick}}checked="checked"{{/can_kick}}>{{locale.yes}}</label>
								<label class="radio"><input class="radio_buttons required" name="rank[can_kick]" type="radio" value="false" {{^can_kick}}checked="checked"{{/can_kick}}>{{locale.no}}</label>
							</div>
						</td>
					</tr>
					<tr>
						<td>{{locale.can_promote}}</td>
						<td>
							<div class="input radio_buttons required">
								<label class="radio"><input class="radio_buttons required" name="rank[can_promote]" type="radio" value="true" {{#can_promote}}checked="checked"{{/can_promote}}>{{locale.yes}}</label>
								<label class="radio"><input class="radio_buttons required" name="rank[can_promote]" type="radio" value="false" {{^can_promote}}checked="checked"{{/can_promote}}>{{locale.no}}</label>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>

	</div>

	<div class="btn_wrapper">
		<button class="submit btn_v3 btn_v3_blue pull-right">{{#id}} {{locale.update}} {{/id}} {{^id}} {{locale.create_new}} {{/id}} {{locale.rank}}</button>
	</div>
</form></script>
<script type="text/x-mustache-template" id="establish_army_tpl" ><form accept-charset="UTF-8" action="{{actions_path.establish_army}}" method="POST" class="form">
	<div class="errors"></div>
	
	<div class="field_wrapper">
		<label class="label" for="tag">{{locale.tag}}:</label>
		<div class="input required">
			<input type="text" name="tag" value="{{army_name_reservation.tag}}" />
		</div>
	</div>

	<div class="btn_wrapper">
		<button class="submit btn_v3 btn_v3_blue pull-right">{{locale.establish_army}}</button>
	</div>
</form></script>
<script type="text/x-mustache-template" id="leave_army_tpl" ><div class="errors"></div>
<h2>{{locale.are_sure_leave_army}}</h2>
<a href="{{actions_path.leave_army}}" id="leave_army_btn_confirm" class="btn_v3 btn_v3_blue pull-right">{{locale.confirm}}</a>
<a id="leave_army_btn_cancel" class="btn_v3 pull-right">{{locale.cancel}}</a></script>
<script type="text/x-mustache-template" id="step_down_tpl" ><form accept-charset="UTF-8" action="{{actions_path.step_down_army}}" method="POST" class="form">
	<div class="errors"></div>

	<div class="field_wrapper">
		<label class="label" for="character_name">{{locale.who_take_over_commander}}</label>
		<div class="input">
			<input type="text" name="character_name" />
		</div>
	</div>

	<div class="btn_wrapper">
		<button class="submit btn_v3 btn_v3_blue pull-right" id="step_down_btn_confirm">{{locale.confirm}}</button>
		<a id="step_down_btn_cancel" class="btn_v3 pull-right" id="step_down_btn_cancel">{{locale.cancel}}</a>
	</div>
</form></script>
<script type="text/x-mustache-template" id="disband_tpl" ><div class="errors"></div>
<h2>{{locale.are_sure_disband_army}}</h2>
<a href="{{actions_path.disband_army}}" id="disband_btn_confirm" class="btn_v3 btn_v3_blue pull-right">{{locale.confirm}}</a>
<a id="disband_btn_cancel" class="btn_v3 pull-right">{{locale.cancel}}</a></script>
<script type="text/x-mustache-template" id="errors_dialog_tpl" >
<div class="errors">
{{#errors}}
	<span>{{.}}</span>
{{/errors}}
</div>
</script>

<script type="text/javascript">if (!NREUMQ.f) { NREUMQ.f=function() {
NREUMQ.push(["load",new Date().getTime()]);
var e=document.createElement("script");
e.type="text/javascript";
e.src=(("http:"===document.location.protocol)?"http:":"https:") + "//" +
  "js-agent.newrelic.com/nr-100.js";
document.body.appendChild(e);
if(NREUMQ.a)NREUMQ.a();
};
NREUMQ.a=window.onload;window.onload=NREUMQ.f;
};
NREUMQ.push(["nrfj","beacon-6.newrelic.com","001b05d68b","2499417","JlwNEBFZCFkEE05UEQhaBhc8QFYaCA8FUBs=",0,397,new Date().getTime(),"","","","",""]);</script></body>
</html>
<body>