-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (91 loc) · 10.1 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
<!DOCTYPE html><html class="no-js" lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="description" property="og:description" content="Pryv API reference and resources for developers"><meta name="author" content="Pryv SA"><meta property="og:type" content="website"><meta name="image" property="og:image" content="/assets/images/logo-256.png"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Home | Pryv API</title><link rel="icon" href="/assets/images/favicon-black.ico" type="image/x-icon"><link rel="apple-touch-icon" sizes="120x120" href="/assets/images/apple-touch-icon-120x120-black.png"><link rel="apple-touch-icon" sizes="152x152" href="/assets/images/apple-touch-icon-152x152-black.png"><link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon-180x180-black.png"><!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]--><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,300,500,700,400italic|Roboto+Condensed:400,300,700"><link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/docco.min.css"><link rel="stylesheet" type="text/css" href="/assets/fonts/ss-gizmo.min.css"><link rel="stylesheet" type="text/css" href="/assets/style.css"></head><body class="home"><header id="page-header"><nav class="navbar navbar-default navbar-fixed-top" role="navigation"><div class="container-fluid"><div class="navbar-header"><a class="navbar-brand logo pryv-home" href="https://pryv.com" title="Pryv home"><img src="/assets/images/icon-home.svg" alt="Pryv home" height="50"></a><a class="navbar-brand logo" href="/" title="Developers home"><img src="/assets/images/logo-256-black.png" alt="Developers home"></a><button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#main-nav"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button></div><div class="collapse navbar-collapse" id="main-nav"><ul class="nav navbar-nav"><li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Guides <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="/getting-started/">Getting started</a></li><li><a href="/concepts/">API concepts</a></li><li><a href="/data-in-pryv/">Data In Pryv</a></li><li><a href="/guides/data-modelling/">Data modelling</a></li><li><a href="/guides/app-guidelines/">App guidelines</a></li><li><a href="/external-resources/">Apps & Libs</a></li><li><a href="/guides/webhooks/">Webhooks</a></li><li><a href="/guides/custom-auth/">Custom auth</a></li><li><a href="/guides/consent/">Consent request</a></li><li><a href="/guides/audit-logs/">Audit logs</a></li></ul></li><li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Reference <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="/reference/">API reference</a></li><li><a href="/reference-admin/">Admin API reference</a></li><li><a href="/reference-system/">System API reference</a></li><li><a href="/event-types/">Event types</a></li><li><a href="/open-api/">Open API (Postman)</a></li><li><a href="/change-log/">API change log</a></li></ul></li><li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">FAQ <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="/faq-api/">API</a></li><li><a href="/faq-infra/">Infrastructure</a></li></ul></li><li><a href="https://github.com/pryv/open-pryv.io">Open Pryv.io</a></li><li><a href="/customer-resources/">Entreprise</a></li><li><a href="/roadmap/">Roadmap</a></li></ul><div class="navbar-right"><p class="navbar-text version"><a href="/change-log/" title="View change log">API version: <strong>1.9.0</strong></a></p></div></div></div></nav></header><div class="container" id="main-wrapper"><div id="main"><div class="jumbotron"><h1 id="welcomedevelopers"><!--welcomedevelopers--><span>Welcome</span><span><img id="logo-dev" src="assets/images/logo-dev.png" alt="Pryv"></span><span>developers</span></h1></div><div class="container"><div class="summary"><p class="lead"><strong>A safe home for your users' timestamped data.<br></strong>Unite custom & existing streams onto one simple yet remarkably powerful platform. All data is kept per-user.</p><div class="row"><div class="col-md-4"><div class="dropdown"><button class="btn btn-primary btn-lg btn-block dropdown-toggle" id="btn-get-started" data-toggle="dropdown" aria-expanded="true">Get started <span class="caret"></span></button><ul class="dropdown-menu dropdown-menu-lg" role="menu" aria-labelledby="btn-get-started"><li><a href="/data-in-pryv/">White Paper - Data In Pryv</a></li><li><a href="/getting-started/">Getting Started with the API</a></li></ul></div></div><div class="col-md-4"><a class="btn btn-primary btn-lg btn-block" href="/concepts/">API concepts</a></div><div class="col-md-4"><a class="btn btn-primary btn-lg btn-block" href="/reference/">API reference</a></div></div><p>To learn about Pryv itself, see <a href="https://pryv.com">our main website</a>.
</p></div></div><div class="container"><h2 class="page-header" id="app-examples--libraries"><!--app-examples--libraries-->App examples & libraries</h2><p>Discover our <a href="/external-resources/">applications and libraries</a> and implement your own using our tutorials:<br>
<ul>
<li>Web applications</li>
<li>iOs applications</li>
<li>Android applications</li>
<li>Integrations</li>
</ul>
</p></div><div class="container"><h2 class="page-header" id="features"><!--features-->Features</h2><div class="row"><div class="col-md-4 marketing-icon"><h3 id="events-for-anything-contextualized"><!--events-for-anything-contextualized-->Events for anything, contextualized</h3>
<p>The API supports any timestamped content, including files. Health metrics, locations, pictures, audio samples, notes, activities, vegetable garden yields, you name it. See <a href="/event-types/">the standard types directory</a>.</p>
<p>Organization is handled in a hierarchical structure with streams, that act as folders in a file system and encode context for your events.</p>
<p><img src="assets/images/event-type.png" alt="Event types"></p>
</div><div class="col-md-4 marketing-icon"><h3 id="one-simple-http--websockets-api"><!--one-simple-http--websockets-api-->One simple HTTP + websockets API</h3><ul class="nav nav-tabs"><li class="active"><a href="#api-example-http" data-toggle="tab">HTTP</a></li><li><a href="#api-example-sockets" data-toggle="tab">Socket.IO</a></li><li><a href="#api-example-DNS-less" data-toggle="tab">DNS-less</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api-example-DNS-less"><pre><code class="language-http">GET {user}/events HTTP/1.1
Authorization: {token}
</code></pre>
<div class="step-marker">⬇</div><pre><code class="language-json">{
"events": [
{
"time": 1369143391.115,
"type": "temperature/c",
"content": 27.7,
"...": "..."
},
{
"time": 1369140027.36,
"type": "position/wgs84",
"content": {
"latitude": 46.517699,
"longitude": 6.562671
},
"...": "..."
},
...
]
}
</code></pre>
</div><div class="tab-pane active" id="api-example-http"><pre><code class="language-http">GET /events HTTP/1.1
Host: {user}.pryv.me
Authorization: {token}
</code></pre>
<div class="step-marker">⬇</div><pre><code class="language-json">{
"events": [
{
"time": 1369143391.115,
"type": "temperature/c",
"content": 27.7,
"...": "..."
},
{
"time": 1369140027.36,
"type": "position/wgs84",
"content": {
"latitude": 46.517699,
"longitude": 6.562671
},
"...": "..."
},
...
]
}
</code></pre>
</div><div class="tab-pane" id="api-example-sockets"><pre><code class="language-javascript">socket.emit('events.get', {}, function (err, result) {
// > result.events
// [
// {
// time: 1369143391.115,
// type: 'temperature/c',
// content: 27.7,
// ...
// },
// ...
// ]
});
</code></pre>
</div></div></div><div class="col-md-4 marketing-icon"><h3 id="decentralized--built-for-privacy"><!--decentralized--built-for-privacy-->Decentralized & built for privacy</h3>
<p>Each user account can be served by a different server, which can be located anywhere.</p>
<p><img src="assets/images/vShare.png" alt="Decentralization"></p>
</div></div></div></div></div><footer id="page-footer"><nav class="navbar navbar-default"><div class="container-fluid"><div id="footer-nav"><ul class="nav navbar-nav"><li><a href="mailto:developers@pryv.com">Send a message</a></li><li><a href="https://github.com/pryv">GitHub</a></li><li><a href="https://pryv.com">pryv.com</a></li></ul></div></div></nav></footer><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script><script src="/assets/bootstrap.min.js"></script><!-- Code blocks highlighting--><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script><script>hljs.initHighlightingOnLoad();
</script><!-- Google Analytics--><script>var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36589447-2']);
_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></body></html>