This guide explains how to send data to valotalive to be shown on screens. Prior to using this, you should possess the secret key and a URL to API.


post


The post action posts new data to valotalive.


HEADER


always

name

type

description

x

X-Secret

string

a_pre_shared_secret_key

    

X-Secret: example_secret_key


POST


always

name

type

description

value

x

action

string


post

x

file

string

The name of the file to be uploaded

example_filename

x

<example_filename>

file

The actual file



Example


curl --compressed -F "example_filename=@path_to_file" -F "action=post" -F "file=example_filename" --header "X-Secret: example_secret_key" "URL_TO_API"


Response JSON


{
  "status":"ok",
  "data":{
"data":["parsed_data"],
    "approveId":"
uuid"
  }
}


approve


The approve action approves the parsing of the previously sent post and puts it live


HEADER


always

name

type

description

x

X-Secret

string

a_pre_shared_secret_key

    

X-Secret: example_secret_key


POST


always

name

type

description

value

x

action

string


approve

x

id

string

The approveId from a post action

approveId



Example


curl --compressed -d "action=approve&id=approveId" --header "X-Secret: example_secret_key" "URL_TO_API"


Response JSON



{

  "data":{

    "message":"Added data"

  },
  "status":"ok"
}