Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
suhailkakar committed Jun 18, 2024
1 parent bce92ae commit b08b7f5
Show file tree
Hide file tree
Showing 6 changed files with 3,415 additions and 2 deletions.
6 changes: 6 additions & 0 deletions example/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"env": {
"browser": true,
"es6": true
}
}
15 changes: 15 additions & 0 deletions example/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {Livepeer} from "livepeer"

const livepeer = new Livepeer({
apiKey: "LP_API_KEY"
})

const main = async () => {
const {stream} = await livepeer.stream.create({
name: "My first stream"
})

console.log("Stream created: ",stream)
}

main()
Loading

0 comments on commit b08b7f5

Please sign in to comment.