-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
133 lines (107 loc) · 8.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<script type="text/javascript" src="https://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="javascripts/main.js"></script>
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Postmon - The Postman</title>
</head>
<body>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36842830-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<div id="container">
<div class="inner">
<header>
<h1>Postmon</h1>
<h2>The Mongo Postman API</h2>
</header>
<section id="downloads" class="clearfix">
<a href="https://github.com/CodingForChange/postmon" id="view-on-github" class="button"><span>Contribua no GitHub</span></a>
<a href="https://github.com/CodingForChange/postmon/issues" id="view-on" class="button"><span>Reporte um Problema</span></a>
</section>
<hr>
<section id="what_content">
<h1>O que é?</h1>
<p>Uma API para consultar CEP e encomendas de maneira fácil, rápida e gratuita.</p>
</section>
<hr>
<section id="how_content">
<h1>Como utilizar?</h1>
<p>A versão atual da API é a 1.x.x</p>
<p>Como é uma API baseada em REST, basta fazer a seguinte chamada para consultar um CEP:</p>
<code>https://api.postmon.com.br/v1/cep/*cep_a_consultar*</code>
<p>Onde *cep_a_consultar* é o número do CEP que deseja consultar as informações. O resultado é retornado em formato JSON</p>
<p>Para obter o retorno em formato <i>XML<i/>, basta acrescentar <code>?format=xml</code> no final da requisição.</p>
<p>Para uma encomenda:</p>
<code>https://api.postmon.com.br/v1/rastreio/*provider*/*codigo_rastreio*</code>
<p>Onde *provider* é a empresa de logistica responsável pela entrega e *codigo_rastreio* é o código de rastreio do produto que deseja informações. O resultado é retornado em formato JSON</p>
<p>Para obter o retorno em formato <i>XML<i/>, basta acrescentar <code>?format=xml</code> no final da requisição.</p>
<p>Providers aceitos:</p>
<ul>
<li>ect => Correios - Empresa Brasileira de Correios e Telegrafos</li>
</ul>
</section>
<section id="sample_content">
<h1>Exemplo de busca de CEP</h1>
<p>
<label for="cep">Informe o CEP:</label><input type="text" maxlength="9" id="cep" placeholder="CEP">
</p>
<p>
<button id="submit">Pesquisar CEP</button>
</p>
</section>
<section id="result_content">
hidden
</section>
<section id="donation_content">
</section>
<footer>
<div class="footer_content">
Postmon is maintained by <a href="https://github.com/CodingForChange">CodingForChange</a><br>
This page was generated by <a href="https://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="http://twitter.com/jasonlong">Jason Long</a>.
</div>
<!-- INICIO FORMULARIO BOTAO PAGSEGURO -->
<form target="pagseguro" action="https://pagseguro.uol.com.br/checkout/v2/donation.html" method="post">
<input type="hidden" name="receiverEmail" value="[email protected]" />
<input type="hidden" name="currency" value="BRL" />
<input type="image" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/doacoes/120x53-doar.gif" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />
</form>
<!-- FINAL FORMULARIO BOTAO PAGSEGURO -->
<!-- INICIO FORMULARIO BOTAO PAYPAL -->
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAmR48r6d10ASJbiCo46YK6cJiNi4zH6OSOxM+mbcsI1x+bvv4JxjyUwGi6zoT6NgJzRFXOF0L2k++026sOQwibhTsiwEXQ/5x47dtEI6LCyFccxPpsFjnHEhqR8D6VK/kZlk+9PWe0GvI+YOhTkzH2wh0KMro/cXDUfxwomEvrqzELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIRZC+6zdepnSAgZiKJTI2JkDeLhNuEgt70SdhcEw96E2x/3fB4xa6pJfKeIRf2O0yK7yAI/3YPad9Md9+i+bJSy7x9lmkGHNWYYkNcc1iKQvacxVXR+136db4Y2bSTqn7Pfp76SZsaRIhrEjFKN0oJIgj/TjTapHxmZxAARZrEk0ty9/f0tfOdYLR3UtwMVXctv8hFYkLXtTG9C5TchTJOc8rnKCCA4cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJb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IBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MTAwODExNTMxOFowIwYJKoZIhvcNAQkEMRYEFEnSEJdmV35Y4YGeykQqQvgDMOPhMA0GCSqGSIb3DQEBAQUABIGAlhHdEUIyDKGntvj2MhLhpEN7ezv2Lijo/2e5DQWHaTm1z/GaNzpEUzaDcXuPIBrRPJxB9inN45WTx0cJcJwYSmZUJnDzVNSOrPEVF360D+QTRxEv/hnU5MrH1dtIEwQx/4Kvc+VNqY59lD6YwG1UerouxAjiEz5Q9hDvLCL1nIM=-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - A maneira fácil e segura de enviar pagamentos online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- FINAL FORMULARIO BOTAO PAYPAL -->
</footer>
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-93834642-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>