sysomos.py
def top_hashtags(self,query,startDate=None,endDate=None,size=None):
    
        """
        Performs search for top hashtags based on query
        
        :param query: The text string on which to search
        :type query: string
        
        :param startDate: Restrict results to a date range, required if endDate is specfied. Valid format is YYYY-MM-DD
        :type startDate: string
        
        :param endDate: Restrict results to a date range, required if startDate is specfied. Valid format is YYYY-MM-DD
        :type endDate: string
        
        :param size: The number of items per page. Maximum value is 50,000. Default=10
        :type size: int
        
        """
   
        params = _params(startDate=startDate,endDate=endDate,size=size)
           
        try:
            search_url = self.base_url + '?apiKey=' + self.api_key + '&q=' + query + "&" + "&".join(["%s=%s" %(k,v) for (k,v) in params.items()])
        except AttributeError:
            search_url = self.base_url + '?apiKey=' + self.api_key + '&q=' + query
        
        response_data = requests.get(search_url,headers=self.headers)
        results = response_data.json()
        
        return results

        Performs search for top hashtags based on query
        
        :param query: The text string on which to search
        :type query: string
        
        :param startDate: Restrict results to a date range, required if endDate is specfied. Valid format is YYYY-MM-DD
        :type startDate: string
        
        :param endDate: Restrict results to a date range, required if startDate is specfied. Valid format is YYYY-MM-DD
        :type endDate: string
        
        :param size: The number of items per page. Maximum value is 50,000. Default=10
        :type size: int
        
        
Performs search for top hashtags based on query
Performs search for top hashtags based on query
def top_hashtags(self,query,startDate=None,endDate=None,size=None):
        params = _params(startDate=startDate,endDate=endDate,size=size)
        try:
            search_url = self.base_url + '?apiKey=' + self.api_key + '&q=' + query + "&" + "&".join(["%s=%s" %(k,v) for (k,v) in params.items()])
        except AttributeError:
            search_url = self.base_url + '?apiKey=' + self.api_key + '&q=' + query
        response_data = requests.get(search_url,headers=self.headers)
        results = response_data.json()
        return results
def top_hashtags ( self , query , startDate = None , endDate = None , size = None ) : params = _params ( startDate = startDate , endDate = endDate , size = size ) try : search_url = self . base_url + '?apiKey=' + self . api_key + '&q=' + query + "&" + "&" . join ( [ "%s=%s" % ( k , v ) for ( k , v ) in params . items ( ) ] ) except AttributeError : search_url = self . base_url + '?apiKey=' + self . api_key + '&q=' + query response_data = requests . get ( search_url , headers = self . headers ) results = response_data . json ( ) return results
Performs search for top hashtags based on query
Performs search for top hashtags based on query
"""
        Performs search for top hashtags based on query
        
        :param query: The text string on which to search
        :type query: string
        
        :param startDate: Restrict results to a date range, required if endDate is specfied. Valid format is YYYY-MM-DD
        :type startDate: string
        
        :param endDate: Restrict results to a date range, required if startDate is specfied. Valid format is YYYY-MM-DD
        :type endDate: string
        
        :param size: The number of items per page. Maximum value is 50,000. Default=10
        :type size: int
        
        """
self
query
The text string on which to search
The text string on which to search
startDate
Restrict results to a date range, required if endDate is specfied. Valid format is YYYY-MM-DD
Restrict results to a date range required if endDate is specfied . Valid format is YYYY - MM - DD
endDate
Restrict results to a date range, required if startDate is specfied. Valid format is YYYY-MM-DD
Restrict results to a date range required if startDate is specfied . Valid format is YYYY - MM - DD
size
The number of items per page. Maximum value is 50,000. Default=10
The number of items per page . Maximum value is 50 000 . Default = 10