Sha256: 3d291b5a0724549966c07b4ed73e754246e16e37b606671902bd528492c4f931
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require File.expand_path('../../lib/discourse_api', __FILE__) client = DiscourseApi::Client.new response = client.create_group(name: "engineering_team") group_id = response["basic_group"]["id"] client.group_add(group_id, username: "sam") client.group_add(group_id, username: "jeff") client.group_add(group_id, usernames: ["neil", "dan"]) client.group_add(group_id, user_id: 123) client.group_add(group_id, user_ids: [123, 456]) client.group_remove(group_id, username: "neil") client.group_remove(group_id, user_id: 123)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse_api-0.4.4 | examples/groups.rb |