Skip to content

Instantly share code, notes, and snippets.

@nfabian13
Created March 10, 2015 23:25
Show Gist options
  • Save nfabian13/eeda99e7a2484286328d to your computer and use it in GitHub Desktop.
Save nfabian13/eeda99e7a2484286328d to your computer and use it in GitHub Desktop.
generate the client token with the Ruby server SDK
#rooms_controller.rb
def show
@room = Room.find(params[:id])
@opentTok_token = @opentok.generate_token @room.session_id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment