Skip to content

blastream/blastream-curl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Some examples from : https://api.v2.blastream.com/api-docs/

Create a channel and an admin access of the channel

Curl request

firstchannel is the name of your channel

curl -X 'POST' \
  'https://api.v2.blastream.com/space/channel/firstchannel' \
  -H 'accept: application/json' \
  -H 'X-Api-Public: PUBLIC_KEY_API' \
  -H 'X-Api-Private: PRIVATE_KEY_API' \
  -H 'Content-Type: application/json' \
  -d '{
  "plan": "pro1",
  "billing": "hourly"
}'

Curl response

{
  "token": "SESSION_ADMIN_TOKEN",
  "url": "//app.v2.blastream.com/eve_firstchannel",
  "id": 26712,
  "prefix": "eve",
  "justBeenCreated": false
}

Iframe url build

reponse->url ? token=SESSION_ADMIN_TOKEN & api=PUBLIC_KEY_API

https://app.v2.blastream.com/eve_firstchannel?token=SESSION_ADMIN_TOKEN&api=PUBLIC_KEY_API

Create a participant

Curl request

curl -X 'POST' \
  'https://api.v2.blastream.com/space/channel/firstchannel/participant' \
  -H 'accept: application/json' \
  -H 'X-Api-Public: PUBLIC_KEY_API' \
  -H 'X-Api-Private: PRIVATE_KEY_API' \
  -H 'Content-Type: application/json' \
  -d '{
  "nickname": "nickname of viewer",
  "id": "your_platform_id"
}'

Curl response

{
  "token": "SESSION_TOKEN",
  "url": "https://app.v2.blastream.com/eve_firstchannel"
}

Iframe url build

reponse->url ? token=SESSION_TOKEN & api=PUBLIC_KEY_API

https://app.v2.blastream.com/eve_firstchannel?token=SESSION_TOKEN&api=PUBLIC_KEY_API

Create a collborator

curl -X 'PUT' \
  'https://api.v2.blastream.com/channel/collaborator' \
  -H 'accept: application/json' \
  -H 'X-Auth-Token: SESSION_ADMIN_TOKEN ' \
  -H 'Content-Type: application/json' \
  -d '{
  "displayname": "my animator",
  "status": "animator"
}'

Curl response

{
  "token": "COLLAB_TOKEN",
  "invite_link": "https://app.v2.blastream.com/eve_firstchannel/access/COLLAB_TOKEN"
}

Iframe url build

reponse->invite_link ? api=PUBLIC_KEY_API

https://app.v2.blastream.com/eve_firstchannel/access/COLLAB_TOKEN?api=PUBLIC_KEY_API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published