tent.io/content/docs/example-conversation-thread.md
Jonathan Rudenberg 68ce1aeaff Add docs
2012-08-22 14:04:09 -04:00

176 lines
3.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Example Conversation Thread
---
## Example Conversation Thread
Brant decides the weather is great for going to the beach, he publicly asks a few friends if they want to go:
```
POST https://tent.brant.io/posts
Content-Type: application/json
Authorization: Basic 6BAtLBGtCK8417S2kEzZUZs/GU87l2beDKKLNo+BGZ8evqv35WiKVlRum4z0dOK0WNPfU9tZzkCK8Q+0RdOwFw==
```
```json
{
"time": 1345475873,
"licences": [
{
"url": "https://tent.io/types/licenses/creative-commons",
"version": "3.0.0"
}
],
"mentions": [
{ "entity": "allison.me" },
{ "entity": "kelsi.io" }
],
"content": {
"type": {
"url": "https://tent.io/types/posts/status",
"version": "1.2.0"
},
"text": "^Allison ^Kelsi looks like a great day to go beaching"
}
}
```
```
201 Created
```
His server pushes his post to them and his followers...
Kelsi responds:
```
POST https://kelsi.io/tent/posts
Content-Type: application/json
Authorization: Basic Ak98PTWmfK6B55VrOx8W1QZGoR8ptSRpEMqXqW9mtCgn9vgzZTL0pU2eD9O8qo/GQwaDo3kmGtWN39coOHSrow==
```
```json
{
"time": 1345476455,
"licences": [
{
"url": "https://tent.io/types/licenses/creative-commons",
"version": "3.0.0"
}
],
"mentions": [
{ "entity": "brant.io" },
{ "entity": "allison.me" },
{
"id": "24894d54305a",
"entity": "brant.io"
}
],
"content": {
"type": {
"url": "https://tent.io/types/posts/status",
"version": "1.2.0"
},
"text": "^Brant ^Allison I'm not doing anything later if you want to go around 3"
}
}
```
```
201 Created
```
Her server pushes her response to them and her followers...
Susie is following Kelsi and responds to her post:
```
POST https://tent.susie.com/posts
Content-Type: application/json
Authorization: Basic hsKqPQ3wktYmByYgnOH21MTRq1DDAXkOyDGlfKGZ8RhiB7mBePA+68o+b1jyYG2nXlzUqUPIGz8yeKmJckB1XQ==
```
```json
{
"time": 1345476455,
"licences": [
{
"url": "https://tent.io/types/licenses/creative-commons",
"version": "3.0.0"
}
],
"mentions": [
{ "entity": "kelsi.io" },
{
"id": "24894d54305a",
"entity": "brant.io"
},
{
"id": "a9448b1b33ec",
"entity": "kelsi.io"
}
],
"content": {
"type": {
"url": "https://tent.io/types/posts/status",
"version": "1.2.0"
},
"text": "^Kelsi I'll be down there around 2:30"
}
}
```
```
201 Created
```
Susies server pushes her post to her followers (which includes Kelsi), and Brant...
Brant responds:
```
POST https://tent.brant.io/posts
Content-Type: application/json
Authorization: Basic 6BAtLBGtCK8417S2kEzZUZs/GU87l2beDKKLNo+BGZ8evqv35WiKVlRum4z0dOK0WNPfU9tZzkCK8Q+0RdOwFw==
```
```json
{
"time": 1345476455,
"licences": [
{
"url": "https://tent.io/types/licenses/creative-commons",
"version": "3.0.0"
}
],
"mentions": [
{ "entity": "kelsi.io" },
{ "entity": "susie.com" },
{
"id": "24894d54305a",
"entity": "brant.io"
},
{
"id": "a9448b1b33ec",
"entity": "kelsi.io"
},
{
"id": "87cc8698f03f",
"entity": "susie.com"
}
],
"content": {
"type": {
"url": "https://tent.io/types/posts/status",
"version": "1.2.0"
},
"text": "^Kelsi ^Susie Should I meet the two of you there around 3?"
}
}
```
```
201 Created
```
Susi, and Brants followers (which includes Kelsi) get pushed the post...