def history(options={})
      resp = (options.nil? || options.empty?) ? get(Googl::Utils::API_HISTORY_URL) : get(Googl::Utils::API_HISTORY_URL, :query => options)
      case resp.code
      when 200
        self.items = resp.parsed_response.to_openstruct
      else
        raise exception("#{resp.code} #{resp.parsed_response}")
      end
    end
def history(options={})
      resp = (options.nil? || options.empty?) ? get(Googl::Utils::API_HISTORY_URL) : get(Googl::Utils::API_HISTORY_URL, :query => options)
      case resp.code
      when 200
        self.items = resp.parsed_response.to_openstruct
      else
        raise exception("#{resp.code} #{resp.parsed_response}")
      end
    end
Gets a user's history of shortened URLs. (Authenticated)

   client = Googl.client('user@gmail.com', 'my_valid_password')

   history = client.history
   history.total_items
   => 19

 A list of URL.

   history.items

 Analytics details for all items

   history = client.history(:projection => :analytics_clicks)