Sha256: fe8068b0949ecaa2baa1f16abfaf5c27e52cb9fefa64eb56ca315dfab11d9483

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require File.expand_path('../../lib/discourse_api', __FILE__)

Dotenv.load
client = DiscourseApi::Client.new

response = client.create_group(name: "engineering_team")
group_id = response["basic_group"]["id"]

client.group_add(group_id, "sam")
client.group_add(group_id, "jeff")
client.group_add(group_id, "neil")

client.group_remove(group_id, "neil")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
discourse_api-0.4.0 examples/groups.rb
discourse_api-0.3.6 examples/groups.rb
discourse_api-0.3.0 examples/groups.rb
discourse_api-0.2.9 examples/groups.rb
discourse_api-0.2.8 examples/groups.rb
discourse_api-0.2.7 examples/groups.rb