Sha256: 2a6f6220660116422d8a14068e7441afe8e8bae28ef894682abea25a7192b651
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
# require 'discourse_api' $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require File.expand_path('../../lib/discourse_api', __FILE__) client = DiscourseApi::Client.new("localhost", 3000) client.api_key = "YOUR_API_KEY" client.api_username = "YOUR_USERNAME" client.post_create( 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discourse_api-0.1.2 | examples/post_topic.rb |
discourse_api-0.1.1 | examples/post_topic.rb |