Sha256: 0c6c834c676583cefd56629d61a5df9c9cb8242f1c838e40e330152cb178010e

Contents?: true

Size: 443 Bytes

Versions: 19

Compression:

Stored size: 443 Bytes

Contents

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

client = DiscourseApi::Client.new("http://localhost:3000")
client.api_key = "YOUR_API_KEY"
client.api_username = "YOUR_USERNAME"

client.create_topic(
  category: "Boing Boing",
  skip_validations: true,
  auto_track: false,
  title: "Concert Master: A new way to choose",
  raw: "This is the raw markdown for my post"
)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
discourse_api-0.7.0 examples/create_topic.rb
discourse_api-0.6.2 examples/create_topic.rb
discourse_api-0.6.1 examples/create_topic.rb
discourse_api-0.6.0 examples/create_topic.rb
discourse_api-0.5.1 examples/create_topic.rb
discourse_api-0.5.0 examples/create_topic.rb
discourse_api-0.4.4 examples/create_topic.rb
discourse_api-0.4.3 examples/create_topic.rb
discourse_api-0.4.2 examples/create_topic.rb
discourse_api-0.4.1 examples/create_topic.rb
discourse_api-0.4.0 examples/create_topic.rb
discourse_api-0.3.6 examples/create_topic.rb
discourse_api-0.3.0 examples/create_topic.rb
discourse_api-0.2.9 examples/create_topic.rb
discourse_api-0.2.8 examples/create_topic.rb
discourse_api-0.2.7 examples/create_topic.rb
discourse_api-0.2.5 examples/create_topic.rb
discourse_api-0.2.4 examples/create_topic.rb
discourse_api-0.2.2 examples/create_topic.rb