Sha256: 3cf8d31b8e77853e710b255eab4e1946283e9cb2e4d65029a29b427ed3e04bfa
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
require 'rubygems' require 'protolink' protonet = Protolink::Protonet.new('localhost:3000', 'bjoern.dorra', 'geheim') user = protonet.find_or_create_user_by_login("johndoe", "password", "John Doe", "john@doe.com") auth_token = user.auth_token puts "user_id : #{user.id}" puts "user_login : #{user.login}" puts "auth_token : #{auth_token}" channel = protonet.find_or_create_channel_by_name("test", "This is a test channel!") puts "channel_id : #{channel.id}" puts "channel_name: #{channel.name}" puts "channel_desc: #{channel.description}" protonet.create_listen(user.id, channel.id) puts "\nhttp://localhost:3000/?auth_token=#{auth_token}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
protolink-0.1.1 | example/create_and_subscribe.rb |
protolink-0.1.0 | example/create_and_subscribe.rb |