Cronologia pagina

Versioni confrontate

Chiave

  • Questa linea è stata aggiunta.
  • Questa linea è stata rimossa.
  • La formattazione è stata modificata.
HTML
<style>
	 @import url('https://fonts.googleapis.com/css?family=Roboto:400,700|Inconsolata|Raleway:200');
	 @import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css');
	.hljs-comment,
	.hljs-title {
		color: #8e908c
	}
	
	.hljs-variable,
	.hljs-attribute,
	.hljs-tag,
	.hljs-regexp,
	.ruby .hljs-constant,
	.xml .hljs-tag .hljs-title,
	.xml .hljs-pi,
	.xml .hljs-doctype,
	.html .hljs-doctype,
	.css .hljs-id,
	.css .hljs-class,
	.css .hljs-pseudo {
		color: #c82829
	}
	
	.hljs-number,
	.hljs-preprocessor,
	.hljs-pragma,
	.hljs-built_in,
	.hljs-literal,
	.hljs-params,
	.hljs-constant {
		color: #f5871f
	}
	
	.ruby .hljs-class .hljs-title,
	.css .hljs-rules .hljs-attribute {
		color: #eab700
	}
	
	.hljs-string,
	.hljs-value,
	.hljs-inheritance,
	.hljs-header,
	.ruby .hljs-symbol,
	.xml .hljs-cdata {
		color: #718c00
	}
	
	.css .hljs-hexcolor {
		color: #3e999f
	}
	
	.hljs-function,
	.python .hljs-decorator,
	.python .hljs-title,
	.ruby .hljs-function .hljs-title,
	.ruby .hljs-title .hljs-keyword,
	.perl .hljs-sub,
	.javascript .hljs-title,
	.coffeescript .hljs-title {
		color: #4271ae
	}
	
	.hljs-keyword,
	.javascript .hljs-function {
		color: #8959a8
	}
	
	.hljs {
		display: block;
		background: white;
		color: #4d4d4c;
		padding: .5em
	}
	
	.coffeescript .javascript,
	.javascript .xml,
	.tex .hljs-formula,
	.xml .javascript,
	.xml .vbscript,
	.xml .css,
	.xml .hljs-cdata {
		opacity: .5
	}
	
	.right .hljs-comment {
		color: #969896
	}
	
	.right .css .hljs-class,
	.right .css .hljs-id,
	.right .css .hljs-pseudo,
	.right .hljs-attribute,
	.right .hljs-regexp,
	.right .hljs-tag,
	.right .hljs-variable,
	.right .html .hljs-doctype,
	.right .ruby .hljs-constant,
	.right .xml .hljs-doctype,
	.right .xml .hljs-pi,
	.right .xml .hljs-tag .hljs-title {
		color: #c66
	}
	
	.right .hljs-built_in,
	.right .hljs-constant,
	.right .hljs-literal,
	.right .hljs-number,
	.right .hljs-params,
	.right .hljs-pragma,
	.right .hljs-preprocessor {
		color: #de935f
	}
	
	.right .css .hljs-rule .hljs-attribute,
	.right .ruby .hljs-class .hljs-title {
		color: #f0c674
	}
	
	.right .hljs-header,
	.right .hljs-inheritance,
	.right .hljs-name,
	.right .hljs-string,
	.right .hljs-value,
	.right .ruby .hljs-symbol,
	.right .xml .hljs-cdata {
		color: #b5bd68
	}
	
	.right .css .hljs-hexcolor,
	.right .hljs-title {
		color: #8abeb7
	}
	
	.right .coffeescript .hljs-title,
	.right .hljs-function,
	.right .javascript .hljs-title,
	.right .perl .hljs-sub,
	.right .python .hljs-decorator,
	.right .python .hljs-title,
	.right .ruby .hljs-function .hljs-title,
	.right .ruby .hljs-title .hljs-keyword {
		color: #81a2be
	}
	
	.right .hljs-keyword,
	.right .javascript .hljs-function {
		color: #b294bb
	}
	
	.right .hljs {
		display: block;
		overflow-x: auto;
		background: #1d1f21;
		color: #c5c8c6;
		padding: .5em;
		-webkit-text-size-adjust: none
	}
	
	.right .coffeescript .javascript,
	.right .javascript .xml,
	.right .tex .hljs-formula,
	.right .xml .css,
	.right .xml .hljs-cdata,
	.right .xml .javascript,
	.right .xml .vbscript {
		opacity: .5
	}
	
	
		
	h1,
	h2,
	h3,
	h4,
	h5 {
		color: black;
		margin: 12px 0
	}
	
	h1 .permalink,
	h2 .permalink,
	h3 .permalink,
	h4 .permalink,
	h5 .permalink {
		margin-left: 0;
		opacity: 0;
		transition: opacity .25s ease
	}
	
	h1:hover .permalink,
	h2:hover .permalink,
	h3:hover .permalink,
	h4:hover .permalink,
	h5:hover .permalink {
		opacity: 1
	}
	
	.triple h1 .permalink,
	.triple h2 .permalink,
	.triple h3 .permalink,
	.triple h4 .permalink,
	.triple h5 .permalink {
		opacity: .15
	}
	
	.triple h1:hover .permalink,
	.triple h2:hover .permalink,
	.triple h3:hover .permalink,
	.triple h4:hover .permalink,
	.triple h5:hover .permalink {
		opacity: .15
	}
	
	h1 {
		font: 200 36px 'Raleway', Helvetica, sans-serif;
		font-size: 36px
	}
	
	h2 {
		font: 200 36px 'Raleway', Helvetica, sans-serif;
		font-size: 30px
	}
	
	h3 {
		font-size: 100%;
		text-transform: uppercase
	}
	
	h5 {
		font-size: 100%;
		font-weight: normal
	}
	
	p {
		margin: 0 0 10px
	}
	
	p.choices {
		line-height: 1.6
	}
	
	a {
		color: #18bc9c;
		text-decoration: none
	}
	
	li p {
		margin: 0
	}
	
	hr.split {
		border: 0;
		height: 1px;
		width: 100%;
		padding-left: 6px;
		margin: 12px auto;
		background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.2) 51.4%, rgba(255, 255, 255, 0.2) 51.4%, rgba(255, 255, 255, 0) 80%)
	}
	
	dl dt {
		float: left;
		width: 130px;
		clear: left;
		text-align: right;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-weight: 700
	}
	
	dl dd {
		margin-left: 150px
	}
	
	blockquote {
		color: rgba(0, 0, 0, 0.5);
		font-size: 15.5px;
		padding: 10px 20px;
		margin: 12px 0;
		border-left: 5px solid #e8e8e8
	}
	
	blockquote p:last-child {
		margin-bottom: 0
	}
	
	pre {
		background-color: #f5f5f5;
		padding: 12px;
		border: 1px solid #cfcfcf;
		border-radius: 6px;
		overflow: auto
	}
	
	pre code {
		color: black;
		background-color: transparent;
		padding: 0;
		border: none
	}
	
	code {
		color: #444;
		background-color: #f5f5f5;
		font: 'Inconsolata', monospace;
		padding: 1px 4px;
		border: 1px solid #cfcfcf;
		border-radius: 3px
	}
	
	ul,
	ol {
		padding-left: 2em
	}
	
	table {
		border-collapse: collapse;
		border-spacing: 0;
		margin-bottom: 12px
	}
	
	table tr:nth-child(2n) {
		background-color: #fafafa
	}
	
	table th,
	table td {
		padding: 6px 12px;
		border: 1px solid #e6e6e6
	}
	
	.text-muted {
		opacity: .5
	}
	
	.note,
	.warning {
		padding: .3em 1em;
		margin: 1em 0;
		border-radius: 2px;
		font-size: 90%
	}
	
	.note h1,
	.warning h1,
	.note h2,
	.warning h2,
	.note h3,
	.warning h3,
	.note h4,
	.warning h4,
	.note h5,
	.warning h5,
	.note h6,
	.warning h6 {
		font-family: 200 36px 'Raleway', Helvetica, sans-serif;
		font-size: 135%;
		font-weight: 500
	}
	
	.note p,
	.warning p {
		margin: .5em 0
	}
	
	.note {
		color: black;
		background-color: #eff7fc;
		border-left: 4px solid #3498db
	}
	
	.note h1,
	.note h2,
	.note h3,
	.note h4,
	.note h5,
	.note h6 {
		color: #3498db
	}
	
	.warning {
		color: black;
		background-color: #fcf0ef;
		border-left: 4px solid #d62c1a
	}
	
	.warning h1,
	.warning h2,
	.warning h3,
	.warning h4,
	.warning h5,
	.warning h6 {
		color: #d62c1a
	}
	
		
		
	.preload * {
		transition: none !important
	}
	
	.pull-left {
		float: left
	}
	
	.pull-right {
		float: right
	}
	
	.badge {
		display: inline-block;
		float: right;
		min-width: 10px;
		min-height: 14px;
		padding: 3px 7px;
		font-size: 12px;
		color: #000;
		background-color: #ededed;
		border-radius: 10px;
		margin: -2px 0
	}
	
	.badge.get {
		color: white;
		background-color: #3498db
	}
	
	.badge.head {
		color: white;
		background-color: #3498db
	}
	
	.badge.options {
		color: white;
		background-color: #3498db
	}
	
	.badge.put {
		color: white;
		background-color: #f39c12
	}
	
	.badge.patch {
		color: white;
		background-color: #f39c12
	}
	
	.badge.post {
		color: white;
		background-color: #18bc9c
	}
	
	.badge.delete {
		color: white;
		background-color: #e74c3c
	}
	
	.collapse-button {
		float: right
	}
	
	.collapse-button .close {
		display: none;
		color: #18bc9c;
		cursor: pointer
	}
	
	.collapse-button .open {
		color: #18bc9c;
		cursor: pointer
	}
	
	.collapse-button.show .close {
		display: inline
	}
	
	.collapse-button.show .open {
		display: none
	}
	
	.collapse-content {
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease-in-out
	}
	
	
	.container {
		margin-left: auto;
		margin-right: auto
	}
	
	.container .row .content {
		margin-left: 244px;
		width: 696px
	}
	
	.container .row:after {
		content: '';
		display: block;
		clear: both
	}
	
	.middle:before,
	.middle:after {
		content: '';
		display: table
	}
	
	.middle:after {
		clear: both
	}
	
	.middle {
		box-sizing: border-box;
		width: 51.5%;
		padding-right: 12px
	}
	
	.right {
		box-sizing: border-box;
		float: right;
		width: 48.5%;
		padding-left: 12px
	}
	
	.right a {
		color: #18bc9c
	}
	
	.right h1,
	.right h2,
	.right h3,
	.right h4,
	.right h5,
	.right p,
	.right div {
		color: white
	}
	
	.right pre {
		background-color: #1d1f21;
		border: 1px solid #1d1f21
	}
	
	.right pre code {
		color: #c5c8c6
	}
	
	.right .description {
		margin-top: 12px
	}
	
	.triple .resource-heading {
		font-size: 125%
	}
	
	.definition {
		margin-top: 12px;
		margin-bottom: 12px
	}
	
	.definition .method {
		font-weight: bold
	}
	
	.definition .method.get {
		color: #2e80b8
	}
	
	.definition .method.head {
		color: #2e80b8
	}
	
	.definition .method.options {
		color: #2e80b8
	}
	
	.definition .method.post {
		color: #2eb89d
	}
	
	.definition .method.put {
		color: #b8822e
	}
	
	.definition .method.patch {
		color: #b8822e
	}
	
	.definition .method.delete {
		color: #b83b2e
	}
	
	.definition .uri {
		word-break: break-all;
		word-wrap: break-word
	}
	
	.definition .hostname {
		opacity: .5
	}
	
	.example-names {
		background-color: #eee;
		padding: 12px;
		border-radius: 6px
	}
	
	.example-names .tab-button {
		cursor: pointer;
		color: black;
		border: 1px solid #ddd;
		padding: 6px;
		margin-left: 12px
	}
	
	.example-names .tab-button.active {
		background-color: #d5d5d5
	}
	
	.right .example-names {
		background-color: #444
	}
	
	.right .example-names .tab-button {
		color: white;
		border: 1px solid #666;
		border-radius: 6px
	}
	
	.right .example-names .tab-button.active {
		background-color: #5e5e5e
	}
	
	#nav-background {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		width: 16.5%;
		padding-right: 14.4px;
		background-color: #fbfbfb;
		border-right: 1px solid #f0f0f0;
		z-index: -1
	}
	
	#right-panel-background {
		position: absolute;
		right: -12px;
		top: -12px;
		bottom: -12px;
		width: 48.6%;
		background-color: #333;
		z-index: -1
	}
	
	.back-to-top {
		position: fixed;
		z-index: 1;
		bottom: 0;
		right: 24px;
		padding: 4px 8px;
		color: rgba(0, 0, 0, 0.5);
		background-color: #ededed;
		text-decoration: none !important;
		border-top: 1px solid #ededed;
		border-left: 1px solid #ededed;
		border-right: 1px solid #ededed;
		border-top-left-radius: 3px;
		border-top-right-radius: 3px
	}
	
	.resource-group {
		padding: 12px;
		margin-bottom: 12px;
		background-color: white;
		border: 2px solid #ffffff;
		border-radius: 6px
	}
	
	.resource-group h2.group-heading,
	.resource-group .heading a {
		padding: 12px;
		margin: -12px -12px 12px -12px;
		background-color: #ededed;
		border-bottom: 1px solid #ededed;
		border-top-left-radius: 6px;
		border-top-right-radius: 6px;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden
	}
	
	.triple .content .resource-group {
		padding: 0;
		border: none
	}
	
	.triple .content .resource-group h2.group-heading,
	.triple .content .resource-group .heading a {
		margin: 0 0 12px 0;
		border: 1px solid #ededed
	}
	
	nav .resource-group .heading a {
		padding: 12px;
		margin-bottom: 0
	}
	
	nav .resource-group .collapse-content {
		padding: 0
	}
	
	.action {
		margin-bottom: 12px;
		padding: 12px 12px 0 12px;
		overflow: hidden;
		border: 1px solid transparent;
		border-radius: 6px
	}
	
	.action h4.action-heading {
		padding: 6px 12px;
		margin: -12px -12px 12px -12px;
		border-bottom: 1px solid transparent;
		border-top-left-radius: 6px;
		border-top-right-radius: 6px;
		overflow: hidden
	}
	
	.action h4.action-heading .name {
		float: right;
		font-weight: normal;
		padding: 6px 0
	}
	
	.action h4.action-heading .method {
		padding: 6px 12px;
		margin-right: 12px;
		border-radius: 3px;
		display: inline-block
	}
	
	.action h4.action-heading .method.get {
		color: #000;
		background-color: white
	}
	
	.action h4.action-heading .method.head {
		color: #000;
		background-color: white
	}
	
	.action h4.action-heading .method.options {
		color: #000;
		background-color: white
	}
	
	.action h4.action-heading .method.put {
		color: #000;
		background-color: white
	}
	
	.action h4.action-heading .method.patch {
		color: #000;
		background-color: white
	}
	
	.action h4.action-heading .method.post {
		color: #000;
		background-color: white
	}
	
	.action h4.action-heading .method.delete {
		color: #000;
		background-color: white
	}
	
	.action h4.action-heading code {
		color: #444;
		background-color: rgba(255, 255, 255, 0.7);
		border-color: transparent;
		font-weight: normal;
		word-break: break-all;
		display: inline-block;
		margin-top: 2px
	}
	
	.action dl.inner {
		padding-bottom: 2px
	}
	
	.action .title {
		border-bottom: 1px solid white;
		margin: 0 -12px -1px -12px;
		padding: 12px
	}
	
	.action.get {
		border-color: #3498db
	}
	
	.action.get h4.action-heading {
		color: white;
		background: #3498db;
		border-bottom-color: #3498db
	}
	
	.action.head {
		border-color: #3498db
	}
	
	.action.head h4.action-heading {
		color: white;
		background: #3498db;
		border-bottom-color: #3498db
	}
	
	.action.options {
		border-color: #3498db
	}
	
	.action.options h4.action-heading {
		color: white;
		background: #3498db;
		border-bottom-color: #3498db
	}
	
	.action.post {
		border-color: #18bc9c
	}
	
	.action.post h4.action-heading {
		color: white;
		background: #18bc9c;
		border-bottom-color: #18bc9c
	}
	
	.action.put {
		border-color: #f39c12
	}
	
	.action.put h4.action-heading {
		color: white;
		background: #f39c12;
		border-bottom-color: #f39c12
	}
	
	.action.patch {
		border-color: #f39c12
	}
	
	.action.patch h4.action-heading {
		color: white;
		background: #f39c12;
		border-bottom-color: #f39c12
	}
	
	.action.delete {
		border-color: #e74c3c
	}
	
	.action.delete h4.action-heading {
		color: white;
		background: #e74c3c;
			border-bottom-color: #e74c3c
		}

</style>
<script type="text/javascript">
	/*
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				  Determine if a string ends with another string.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				*/
	function endsWith(str, suffix) {
		return str.indexOf(suffix, str.length - suffix.length) !== -1;
	}

	/*
	  Get a list of direct child elements by class name.
	*/
	function childrenByClass(element, name) {
		var filtered = [];

		for (var i = 0; i < element.children.length; i++) {
			var child = element.children[i];
			var classNames = child.className.split(' ');
			if (classNames.indexOf(name) !== -1) {
				filtered.push(child);
			}
		}

		return filtered;
	}

	/*
	  Get an array [width, height] of the window.
	*/
	function getWindowDimensions() {
		var w = window,
			d = document,
			e = d.documentElement,
			g = d.body,
			x = w.innerWidth || e.clientWidth || g.clientWidth,
			y = w.innerHeight || e.clientHeight || g.clientHeight;

		return [x, y];
	}

	/*
	  Collapse or show a request/response example.
	*/
	function toggleCollapseButton(event) {
		var button = event.target.parentNode;
		var content = button.parentNode.nextElementSibling;
		var inner = content.children[0];

		if (button.className.indexOf('collapse-button') === -1) {
			// Clicked without hitting the right element?
			return;
		}

		if (content.style.maxHeight && content.style.maxHeight !== '0px') {
			// Currently showing, so let's hide it
			button.className = 'collapse-button';
			content.style.maxHeight = '0px';
		} else {
			// Currently hidden, so let's show it
			button.className = 'collapse-button show';
			content.style.maxHeight = inner.offsetHeight + 12 + 'px';

		}
	}

	function toggleTabButton(event) {
		var i, index;
		var button = event.target;

		// Get index of the current button.
		var buttons = childrenByClass(button.parentNode, 'tab-button');
		for (i = 0; i < buttons.length; i++) {
			if (buttons[i] === button) {
				index = i;
				button.className = 'tab-button active';
			} else {
				buttons[i].className = 'tab-button';
			}
		}

		// Hide other tabs and show this one.
		var tabs = childrenByClass(button.parentNode.parentNode, 'tab');
		for (i = 0; i < tabs.length; i++) {
			if (i === index) {
				tabs[i].style.display = 'block';
			} else {
				tabs[i].style.display = 'none';
			}
		}
	}

	/*
	  Collapse or show a navigation menu. It will not be hidden unless it
	  is currently selected or `force` has been passed.
	*/
	function toggleCollapseNav(event, force) {
		var heading = event.target.parentNode;
		var content = heading.nextSibling;
		var inner = content.children[0];

		if (heading.className.indexOf('heading') === -1) {
			// Clicked without hitting the right element?
			return;
		}

		if (content.style.maxHeight && content.style.maxHeight !== '0px') {
			// Currently showing, so let's hide it, but only if this nav item
			// is already selected. This prevents newly selected items from
			// collapsing in an annoying fashion.
			if (force || window.location.hash && endsWith(event.target.href, window.location.hash)) {
				content.style.maxHeight = '0px';
			}
		} else {
			// Currently hidden, so let's show it
			content.style.maxHeight = inner.offsetHeight + 12 + 'px';
		}
	}

	/*
	  Refresh the page after a live update from the server. This only
	  works in live preview mode (using the `--server` parameter).
	*/
	function refresh(body) {
		document.querySelector('body').className = 'preload';
		document.body.innerHTML = body;

		// Re-initialize the page
		init();
		autoCollapse();

		document.querySelector('body').className = '';
	}

	/*
	  Determine which navigation items should be auto-collapsed to show as many
	  as possible on the screen, based on the current window height. This also
	  collapses them.
	*/
	function autoCollapse() {
		var windowHeight = getWindowDimensions()[1];
		var itemsHeight = 64; /* Account for some padding */
		var itemsArray = Array.prototype.slice.call(
			document.querySelectorAll('nav .resource-group .heading'));

		// Get the total height of the navigation items
		itemsArray.forEach(function(item) {
			itemsHeight += item.parentNode.offsetHeight;
		});

		// Should we auto-collapse any nav items? Try to find the smallest item
		// that can be collapsed to show all items on the screen. If not possible,
		// then collapse the largest item and do it again. First, sort the items
		// by height from smallest to largest.
		var sortedItems = itemsArray.sort(function(a, b) {
			return a.parentNode.offsetHeight - b.parentNode.offsetHeight;
		});

		while (sortedItems.length && itemsHeight > windowHeight) {
			for (var i = 0; i < sortedItems.length; i++) {
				// Will collapsing this item help?
				var itemHeight = sortedItems[i].nextSibling.offsetHeight;
				if ((itemsHeight - itemHeight <= windowHeight) || i === sortedItems.length - 1) {
					// It will, so let's collapse it, remove its content height from
					// our total and then remove it from our list of candidates
					// that can be collapsed.
					itemsHeight -= itemHeight;
					toggleCollapseNav({
						target: sortedItems[i].children[0]
					}, true);
					sortedItems.splice(i, 1);
					break;
				}
			}
		}
	}

	/*
	  Initialize the interactive functionality of the page.
	*/
	function init() {
		var i, j;

		// Make collapse buttons clickable
		var buttons = document.querySelectorAll('.collapse-button');
		for (i = 0; i < buttons.length; i++) {
			buttons[i].onclick = toggleCollapseButton;

			// Show by default? Then toggle now.
			if (buttons[i].className.indexOf('show') !== -1) {
				toggleCollapseButton({
					target: buttons[i].children[0]
				});
			}
		}

		var responseCodes = document.querySelectorAll('.example-names');
		for (i = 0; i < responseCodes.length; i++) {
			var tabButtons = childrenByClass(responseCodes[i], 'tab-button');
			for (j = 0; j < tabButtons.length; j++) {
				tabButtons[j].onclick = toggleTabButton;

				// Show by default?
				if (j === 0) {
					toggleTabButton({
						target: tabButtons[j]
					});
				}
			}
		}

		// Make nav items clickable to collapse/expand their content.
		var navItems = document.querySelectorAll('nav .resource-group .heading');
		for (i = 0; i < navItems.length; i++) {
			navItems[i].onclick = toggleCollapseNav;

			// Show all by default
			toggleCollapseNav({
				target: navItems[i].children[0]
			});
		}
	}

	// Initial call to set up panels
	jQuery(document).ready(function() {
	  init();
	});
	

</script>
HTML
<div class="content">
	
	<section id="panoramica" class="resource-group">
		<h2 class="group-heading">Panoramica <a href="#panoramica" class="permalink">&para;</a></h2>
		<h2 id="header-introduzione">Introduzione <a class="permalink" href="#header-introduzione" aria-hidden="true">¶</a></h2>
		<p>La TIM API - Terminal Location abilita le applicazioni di Business Client, Content Service Provider e Sviluppatori a tracciare la posizione di un terminale mobile.</p>
	</section>
	<section id="sicurezza" class="resource-group">
		<h2 class="group-heading">Sicurezza <a href="#sicurezza" class="permalink">&para;</a></h2>
		<h2 id="header-autenticazione">Autenticazione <a class="permalink" href="#header-autenticazione" aria-hidden="true">¶</a></h2>
		<p>L’API TerminalLocation descritta in questo documento adotterà il meccanismo di autenticazione che si basa su un API-Key. L’API-Key sarà fornita nel parametro <code>KeyId</code> dell’header http della richiesta.</p>
	</section>
	<section id="localizzazione" class="resource-group">
		<h2 class="group-heading">Localizzazione <a href="#localizzazione" class="permalink">&para;</a></h2>
		<div id="localizzazione-posizione" class="resource">
			<h3 class="resource-heading">Posizione <a href="#localizzazione-posizione" class="permalink">&nbsp;&para;</a></h3>
			<p>La risorsa Posizione permette di recuperare le informazioni di localizzazione di un cliente TIM.</p>
			<div id="localizzazione-posizione-get" class="action get">
				<h4 class="action-heading"><div class="name">Recupera</div><a href="#localizzazione-posizione-get" class="method get">GET</a><code class="uri">/location/v1.1/{phoneNumber}</code></h4>
				<p>Ottieni la posizione del terminale mobile associato al numero fornito.</p>
				<h4>Example URI</h4>
				<div class="definition"><span class="method get">GET</span>&nbsp;<span class="uri"><span class="hostname"></span>/location/v1.1/<span class="hljs-attribute" title="phoneNumber">3427706442</span></span>
				</div>
				<div class="title"><strong>URI Parameters</strong>
					<div class="collapse-button show"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<dl class="inner"><dt>phoneNumber</dt>
						<dd><code>string</code>&nbsp;<span class="required">(required)</span>&nbsp;<span class="text-muted example"><strong>Example:&nbsp;</strong><span>3427706442</span></span>
						</dd>
					</dl>
				</div>
				<div class="title"><strong>Request</strong>
					<div class="collapse-button"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<div class="inner">
						<h5>Headers</h5><pre><code><span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">application/json</span><br><span class="hljs-attribute">KeyId</span>: <span class="hljs-string">d93decd9-b053-47ba-be26-d1da62942ff1</span></code></pre>
						<div style="height: 1px;"></div>
					</div>
				</div>
				<div class="title"><strong>Response&nbsp;&nbsp;<code>200</code></strong>
					<div class="collapse-button"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<div class="inner">
						<h5>Headers</h5><pre><code><span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">application/json</span></code></pre>
						<div style="height: 1px;"></div>
						<h5>Body</h5><pre><code><span class="hljs-string">"result"</span>: {
    <span class="hljs-string">"status"</span>: <span class="hljs-string">"OK"</span>,
    <span class="hljs-string">"description"</span>: <span class="hljs-string">"Localizzazione Ricevuta."</span>,
    <span class="hljs-string">"values"</span>: {
        <span class="hljs-string">"latitudine"</span>: <span class="hljs-string">"41.25396"</span>,
        <span class="hljs-string">"longitudine"</span>: <span class="hljs-string">"13.616616"</span>,
        <span class="hljs-string">"altitudine"</span>: <span class="hljs-string">"null"</span>,
        <span class="hljs-string">"accuracy"</span>: <span class="hljs-string">"939"</span>,
        <span class="hljs-string">"timestamp"</span>: <span class="hljs-string">"2017-06-13T13:09:48.000+02:00"</span>
}</code></pre>
						<div style="height: 1px;"></div>
					</div>
				</div>
				<div class="title"><strong>Response&nbsp;&nbsp;<code>400</code></strong>
					<div class="collapse-button"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<div class="inner">
						<div class="description">
							<p>La richiesta non è stata formulata in maniera corretta.</p>
						</div>
						<h5>Headers</h5><pre><code><span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">text/plain</span></code></pre>
						<div style="height: 1px;"></div>
					</div>
				</div>
				<div class="title"><strong>Response&nbsp;&nbsp;<code>404</code></strong>
					<div class="collapse-button"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<div class="inner">
						<div class="description">
							<p>Risorsa non trovata</p>
						</div>
						<h5>Headers</h5><pre><code><span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">text/plain</span></code></pre>
						<div style="height: 1px;"></div>
					</div>
				</div>
				<div class="title"><strong>Response&nbsp;&nbsp;<code>403</code></strong>
					<div class="collapse-button"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<div class="inner">
						<div class="description">
							<p>Errore di autenticazione</p>
						</div>
						<h5>Headers</h5><pre><code><span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">text/plain</span></code></pre>
						<div style="height: 1px;"></div>
					</div>
				</div>
				<div class="title"><strong>Response&nbsp;&nbsp;<code>412</code></strong>
					<div class="collapse-button"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<div class="inner">
						<div class="description">
							<p>Le condizioni per effettuare la richiesta non sono soddisfatte, in particolare l’invocazione dell’API non è permessa per uno dei seguenti motivi:</p>
							<ul>
								<li>
									<p>Sottoscrizione non attiva.</p>
								</li>
								<li>
									<p>Frequenza traffico richieste superata.</p>
								</li>
								<li>
									<p>Soglia richieste superata.</p>
								</li>
							</ul>
						</div>
						<h5>Headers</h5><pre><code><span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">application/json</span></code></pre>
						<div style="height: 1px;"></div>
					</div>
				</div>
				<div class="title"><strong>Response&nbsp;&nbsp;<code>500</code></strong>
					<div class="collapse-button"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<div class="inner">
						<div class="description">
							<p>Errore generico del server</p>
						</div>
						<h5>Headers</h5><pre><code><span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">application/json</span></code></pre>
						<div style="height: 1px;"></div>
					</div>
				</div>
				<div class="title"><strong>Response&nbsp;&nbsp;<code>502</code></strong>
					<div class="collapse-button"><span class="close">Hide</span><span class="open">Show</span></div>
				</div>
				<div class="collapse-content">
					<div class="inner">
						<div class="description">
							<p>Il server ha ricevuto una risposta non valida dal server a cui ha eseguito l’accesso per soddisfare la richiesta.</p>
						</div>
						<h5>Headers</h5><pre><code><span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">application/json</span></code></pre>
						<div style="height: 1px;"></div>
					</div>
				</div>
			</div>
		</div>
	</section>
</div>
Copyright © 2016 Telecom Italia S.p.A. - P.IVA 00488410010