def vote(*args)
      options = args.last.is_a?(Hash) ? args.pop : {}
      if args.length == 2
        options.merge!(:vote => args[0])
        options.merge!(:post => args[1])
        response = post('posts/vote', options)
      else
        puts "#{Kernel.caller.first}: posts.vote expects 2 arguments: vote([-1..1]), posts ID"
      end
    end
def vote(*args)
      options = args.last.is_a?(Hash) ? args.pop : {}
      if args.length == 2
        options.merge!(:vote => args[0])
        options.merge!(:post => args[1])
        response = post('posts/vote', options)
      else
        puts "#{Kernel.caller.first}: posts.vote expects 2 arguments: vote([-1..1]), posts ID"
      end
    end
Register a vote for a post.
 @accessibility: public key, secret key
 @methods: POST
 @format: json, jsonp
 @authenticated: true
 @limited: false
 @param vote [Integer] Choices: -1, 0, 1
 @param post [Integer] Looks up a post by ID.
 @return [Hashie::Rash] Details on the post.
 @example Vote for post ID 12345678
   Disqussion::Client.posts.vote(1, 12345678)
 @see: http://disqus.com/api/3.0/posts/vote.json