Schema para Posts do Feed
Nome
Descrição
Valores Aceitos
source
Origem do Post
web ou app
type
Tipo de Post
text , image , video , channel_video , channel_file
description
Texto do corpo do Post
any
updated_at
Data de atualização do Post
timestamp
user_info
Dados do Usuários dono do Post
{object}
likes
Quantidade de Likes
int
files
Arquivos incorporados no Post
[array] ou {object}
title
Titulo do Post (Se necessário)
any
files.type
Tipo de Arquivo encorporado
text , video , pdf , image
files.title
Titulo do Arquivo encorporado
any
files.description
Descrição do Arquivo encorporado
any
files.url
url do Vídeo ou Imagem
any
files.thumb_rendering
thumnail renderizada no Streaming
Boolean
files.video_rendering
video renderizado no Streaming
Boolean
files.channel_id
ID do Canal que enviou o Arquivo ou vídeo de um Post com Origem em Canais
Number
1 - Post simples apenas com Texto
{
"source" :" web || app" ,
"type" : " text" ,
"title" :" " ,
"description" :" Dados do Post" ,
"updated_at" : 1562597361000 ,
"user_info" :{
"id" :9999 ,
"name" : " Nome" ,
"picture" : " user.png" ,
"updated_at" :" "
},
"likes" :0
}
2 - Posts com uma ou mais Imagens
{
"source" :" web || app" ,
"type" : " image" ,
"title" :" " ,
"files" :[
{
"type" :" image" ,
"url" :" image.png"
},
{
"type" :" image" ,
"url" :" image.png"
}
],
"description" :" Dados do Post" ,
"updated_at" : 1562597361000 ,
"user_info" :{
"id" :9999 ,
"name" : " Nome" ,
"picture" : " user.png" ,
"updated_at" :" " ,
},
"likes" :0
}
{
"source" :" web || app" ,
"type" : " video" ,
"title" :" " ,
"files" : [
{
"type" :" video" ,
"url" :" 0b730c90-ac93-11e9-9fcf-9d79919b32e2" ,
"thumb_rendering" : false ,
"video_rendering" : false
}
],
"description" :" Dados do Post" ,
"updated_at" : 1562597361000 ,
"user_info" :{
"id" :9999 ,
"name" : " Nome" ,
"picture" : " user.png" ,
"updated_at" :" " ,
},
"likes" :0
}
4 - Posts com Vídeo com origem em um Canal
{
"source" :" web || app" ,
"type" : " channel_video" ,
"title" :" Enviado por {Nome do Canal}" ,
"files" : [
{
"type" :" video" ,
"url" :" 0b730c90-ac93-11e9-9fcf-9d79919b32e2" ,
"thumb_rendering" : false ,
"video_rendering" : false ,
"channel_id" :99
}
],
"description" :" Dados do Post" ,
"updated_at" : 1562597361000 ,
"user_info" :{
"id" :9999 ,
"name" : " Nome" ,
"picture" : " user.png" ,
"updated_at" :" " ,
},
"likes" :0
}
5 - Arquivos vindo de um Canal
{
"source" :" web || app" ,
"type" : " channel_file" ,
"title" :" Enviado por {Nome do Canal}" ,
"files" : [
{
"type" :" text || pdf || image" ,
"title" : " Titulo do Arquivo" ,
"file_id" : 99 ,
"description" : " Pequena Descrição do Arquivo" ,
"thumbnail" : " thumb.png" ,
"channel_id" :99
}
],
"description" :" Dados do Post" ,
"updated_at" : 1562597361000 ,
"user_info" :{
"id" :9999 ,
"name" : " Nome" ,
"picture" : " user.png" ,
"updated_at" :" " ,
},
"likes" :0
}