Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/a/l/alertbirds-community-edition-HEAD/lib/oauth.py   alertbirds-community-edition(Download)
    def __init__(self, subdomain):
        self.request_token_url = 'http://%s.%s%s' % (subdomain, config.LOGGLY_DOMAIN, config.OAUTH_REQUEST_TOKEN_PATH)
        self.access_token_url = 'http://%s.%s%s' % (subdomain, config.LOGGLY_DOMAIN, config.OAUTH_ACCESS_TOKEN_PATH)
        self.authorize_url = 'http://%s.%s%s' % (subdomain, config.LOGGLY_DOMAIN, config.OAUTH_AUTHORIZE_PATH)
        self.callback_url = config.OAUTH_CALLBACK_URL

src/a/l/alertbirds-community-edition-HEAD/controllers/cron.py   alertbirds-community-edition(Download)
                        try:
                            search_result = json.loads(oauth_client.make_request(token, 'http://%s.%s/api/facets/date?%s' % \
                                (user.subdomain, config.LOGGLY_DOMAIN, qs), 'GET'))
                        except Exception, e:
                            logging.error({'module': 'controllers.cron', 'traceback': traceback.format_exc()})

src/a/l/alertbirds-community-edition-HEAD/controllers/page.py   alertbirds-community-edition(Download)
class PageHandler(RequestHandler):
    template_args = {'LOGOUT_URL': google_users.create_logout_url('/'),
                     'TRACKING_INPUT_URL': config.TRACKING_INPUT_URL,
                     'LOGGLY_DOMAIN': config.LOGGLY_DOMAIN,
                     'LOGS_DOMAIN': config.LOGS_DOMAIN,

src/a/l/alertbirds-community-edition-HEAD/lib/loggly.py   alertbirds-community-edition(Download)
        try:
            return json.loads(oauth_client.make_request(token, 'http://%s.%s/api/devices' % \
                (user.subdomain, config.LOGGLY_DOMAIN) , 'GET'))
        except ValueError:
            logging.error(json.dumps({'module': 'lib.loggly', 'message': \
        try:
            return json.loads(oauth_client.make_request(token, 'http://%s.%s/api/inputs' % \
                (user.subdomain, config.LOGGLY_DOMAIN) , 'GET'))
        except ValueError:
            logging.error(json.dumps({'module': 'lib.loggly', 'message': \
        params.append('_search %s' % Loggly.build_search_query(context))
        params.append('_from=NOW-%sSECONDS' % search_from_secs)
        return 'http://%s.%s/shell#/%s' % (user.subdomain, config.LOGGLY_DOMAIN, '/'.join(params))
 
    @staticmethod
        try:
            return json.loads(oauth_client.make_request(token, 'http://%s.%s/api/savedsearches/%s' % \
                (user.subdomain, config.LOGGLY_DOMAIN, id), 'GET'))
        except ValueError:
            logging.error(json.dumps({'module': 'lib.loggly', 'message': \
        try:
            return json.loads(oauth_client.make_request(token, 'http://%s.%s/api/savedsearches' % \
                (user.subdomain, config.LOGGLY_DOMAIN), 'GET'))
        except ValueError:
            logging.error(json.dumps({'module': 'lib.loggly', 'message': \

src/a/l/alertbirds-community-edition-HEAD/models/savedsearch.py   alertbirds-community-edition(Download)
 
        return oauth_client.make_request(token, 'http://%s.%s/api/savedsearches' % \
            (user.subdomain, config.LOGGLY_DOMAIN), method, params = params)
 
    def delete(self):
 
        return oauth_client.make_request(token, 'http://%s.%s/api/savedsearches/%s' % \
            (user.subdomain, config.LOGGLY_DOMAIN, self.id), 'DELETE')
 

src/a/l/alertbirds-community-edition-HEAD/controllers/main.py   alertbirds-community-edition(Download)
 
            search_result = json.loads(oauth_client.make_request(access_token, 'http://%s.%s/api/facets/date?q=*&from=NOW-1YEAR' % \
                (user.subdomain, config.LOGGLY_DOMAIN), 'GET'))
            logging.info(json.dumps({'module': 'main', 'user': user.email, 'event': 'new user', 'loggly_events_found': search_result['numFound']}))
            if search_result['numFound'] == 0: