Skip to content

Commit

Permalink
added peer to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
trshafer committed Jan 3, 2015
1 parent e3c81a6 commit 3654a7b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,23 @@ client.streams.recordings('STREAM_ID', function(err, streamRecordings){});
// streamRecordings is an array of javascript objects: [{name: 'stream id', url: 'the playable url', size: size in bytes as integer, date: 'ISO Date of recording'}, …}, …]
```


To delete a specific new stream:

```javascript
client.streams.recordings.destroy('STREAM_ID', 'RECORDING_NAME', function(err, stream){});
// streamRecording is a simple javascript object that will include deletedAt: {deletedAt: 'ISO Date'}
```

### Peer

#### Identity Signature Generation

```javascript
var identity = "Unique user name to your app"
response = client.peer.generateIdentitySignature(identity)
// response looks like {signature: "md5-hash", timestamp: 1420258111, identity: "Unique user name to your app"}
```

## Contributing

1. Fork it
Expand Down

0 comments on commit 3654a7b

Please sign in to comment.