Esempio n. 1
0
    def search(self, term, **args):
        """Search for repositories.

        Accept arguments to filter the search:
        - start_page => specifies the page of the results to show
        - language   => limits the search to a programming language """

        path = 'repos/search/' + hclient.quote_plus(term)
        params = "&".join(["%s=%s" % (k, v) for k, v in list(args.items())])
        if params:
            path += '?%s' % params
        return self._parsed(path)
Esempio n. 2
0
    def search(self, term, **args):
        """Search for repositories.

        Accept arguments to filter the search:
        - start_page => specifies the page of the results to show
        - language   => limits the search to a programming language """

        path = 'repos/search/' + hclient.quote_plus(term)
        params = "&".join(["%s=%s" % (k, v) for k,v in list(args.items())])
        if params:
            path += '?%s' % params
        return self._parsed(path)
Esempio n. 3
0
 def search(self, user, repo, state, search_term):
     """Search the issues for the given repo for the given state and search term."""
     return self._parsed('/'.join([
         'issues', 'search', user, repo, state,
         hclient.quote_plus(search_term)
     ]))
Esempio n. 4
0
 def search(self, user, repo, state, search_term):
     """Search the issues for the given repo for the given state and search term."""
     return self._parsed('/'.join(['issues', 'search', user, repo, state,
                                   hclient.quote_plus(search_term)]))