From 3654a7b43599cf8eda7d2ff51420c7f4082ffc49 Mon Sep 17 00:00:00 2001 From: Thomas Shafer Date: Fri, 2 Jan 2015 20:09:27 -0800 Subject: [PATCH] added peer to readme --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index afabb85..023f242 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,6 @@ 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 @@ -129,6 +128,16 @@ client.streams.recordings.destroy('STREAM_ID', 'RECORDING_NAME', function(err, s // 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