def build_uri(method, params = {})
      uri = URI(api_server)
      uri.path  = '/api/' + method.sub('.', '/')
      uri.query = URI.encode_www_form(sign(params))

      SchoolFriend.logger.debug "API Request: #{uri}"

      uri
    end
def build_uri(method, params = {})
      uri = URI(api_server)
      uri.path  = '/api/' + method.sub('.', '/')
      uri.query = URI.encode_www_form(sign(params))

      SchoolFriend.logger.debug "API Request: #{uri}"

      uri
    end
Builds URI object

 @param [String] method request method
 @param [Hash] params request params
 @return [URI::HTTP]