Skip to content

Commit

Permalink
Merge pull request #19 from livepeer/example
Browse files Browse the repository at this point in the history
add example and jest dependencies
  • Loading branch information
0xcadams authored Jun 25, 2024
2 parents bce92ae + d8605ab commit 43a8e25
Show file tree
Hide file tree
Showing 10 changed files with 10,185 additions and 211 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 43a8e25

Please sign in to comment.