Class: Disqussion::Exports
- Defined in:
- lib/disqussion/client/exports.rb
Instance Method Summary collapse
-
#exportForum(*args) ⇒ Hashie::Rash
Export a forum @accessibility: public key, secret key @methods: POST @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/exports/exportForum.json.
Methods included from Request
Instance Method Details
#exportForum(*args) ⇒ Hashie::Rash
Export a forum @accessibility: public key, secret key @methods: POST @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/exports/exportForum.json
16 17 18 19 20 21 22 23 24 |
# File 'lib/disqussion/client/exports.rb', line 16 def exportForum(*args) = args.last.is_a?(Hash) ? args.pop : {} if args.size == 1 .merge!(:forum => args[0]) response = post('exports/exportForum', ) else puts "#{Kernel.caller.first}: exports.exportForum expects an arguments: forum" end end |