def prepare_posts_params(params, allowed_params = [])
        compare_params(params, allowed_params)

        # we don't need to check whether the following parameters
        # are valid for this request because compare_params
        # would raise if an invalid param is supplied

        params[:tag]    = prepare_param_tag(params[:tag])  if params[:tag]
        params[:dt]     = TIME_CONVERTER.call(params[:dt]) if params[:dt]
        params[:url]    = URI.parse(params[:url])          if params[:url]
        params[:count]  = if value = params[:count]
          raise Error, 'Expected `count` <= 100' if value.to_i > 100 # requirement
          value.to_i
        else
          15 # default value
        end

        params
      end
def prepare_posts_params(params, allowed_params = [])
        compare_params(params, allowed_params)

        # we don't need to check whether the following parameters
        # are valid for this request because compare_params
        # would raise if an invalid param is supplied

        params[:tag]    = prepare_param_tag(params[:tag])  if params[:tag]
        params[:dt]     = TIME_CONVERTER.call(params[:dt]) if params[:dt]
        params[:url]    = URI.parse(params[:url])          if params[:url]
        params[:count]  = if value = params[:count]
          raise Error, 'Expected `count` <= 100' if value.to_i > 100 # requirement
          value.to_i
        else
          15 # default value
        end

        params
      end
Prepares the params for a `post_*` call
 and returns a Hash with the params ready for the HTTP request.

 Raises::  WWW::Delicious::Error