Returns the API url for storing events.
428283
def store_api_url(self):
        """"""
        return "%s://%s%sapi/%s/store/" % (
            self.scheme,
            self.host,
            self.path,
            self.project_id,
        )
1101932
def _getEventsOnDay(self, request, day):
        """"""
        return getAllEventsByDay(request, day, day, home=self)[0]
656392
def get_events(**kwargs):
    
    url = "/r25ws/servlet/wrd/run/events.xml"
    if len(kwargs):
        url += "?%s" % urlencode(kwargs)

    return events_from_xml(get_resource(url))
680852
def as_url(cls, api=None, name_prefix='', url_prefix=''):
        
        url_prefix = url_prefix and "%s/" % url_prefix
        name_prefix = name_prefix and "%s-" % name_prefix

        url_regex = '^%s%s/?$' % (
            url_prefix, cls._meta.url_regex.lstrip('^').rstrip('/$'))
        url_regex = url_regex.replace('//', '/')
        url_name = '%s%s' % (name_prefix, cls._meta.url_name)

        return url(url_regex, cls.as_view(api=api), name=url_name)
265139
def get_webhook_url(deployment_name,
                    space='default',
                    data_source='webhook',
                    token_manager=None,
                    app_url=defaults.APP_URL,
                    **fields):
    

    import_url = data_engine.get_import_data_url(deployment_name,
                                                 app_url=app_url,
                                                 token_manager=token_manager)

    api_key = deployments.get_apikey(deployment_name,
                                     token_manager=token_manager,
                                     app_url=app_url)

    fields_string = '&'.join(['%s=%s' % (key, value)
                              for (key, value) in fields.items()])
    return '%s/api/v1/import/webhook/?space=%s&data_source=%sk&apikey=%s&%s' % \
           (import_url, space, data_source, api_key, fields_string)
1071139
def _getEventsOnDay(self, request, day):
        """"""
        home = request.site.root_page
        return getAllEventsByDay(request, day, day, home=home)[0]
901687
def url(self):
        """"""
        return URL.format(http=self.web_proto, host=self.host, port=self.port)
1133126
def url_for(self, attr=None, filter_value=None,
            service_type=None, endpoint_type="publicURL",
            service_name=None, volume_service_name=None):
        """"""
        matching_endpoints = []
        # We don't always get a service catalog back ...
        if "serviceCatalog" not in self.catalog["access"]:
            return None

        # Full catalog ...
        catalog = self.catalog["access"]["serviceCatalog"]
        for service in catalog:
            if service.get("type") != service_type:
                continue
            endpoints = service["endpoints"]
            for endpoint in endpoints:
                if not filter_value or endpoint.get(attr) == filter_value:
                    endpoint["serviceName"] = service.get("name")
                    matching_endpoints.append(endpoint)

        if not matching_endpoints:
            raise exc.EndpointNotFound()
        elif len(matching_endpoints) > 1:
            raise exc.AmbiguousEndpoints(endpoints=matching_endpoints)
        else:
            return matching_endpoints[0][endpoint_type]
51604
def get_api_url(self):
        
        url = getattr(settings, 'VIDEOHUB_API_URL', None)
        # Support alternate setting (used by most client projects)
        if not url:
            url = getattr(settings, 'VIDEOHUB_API_BASE_URL', None)
            if url:
                url = url.rstrip('/') + '/videos/{}'
        if not url:
            url = self.DEFAULT_VIDEOHUB_API_URL
        return url.format(self.id)
514430
def get(self, params, **options):
        """"""
        options = self.client._merge_options({ 'full_payload': True })
        return self.client.get('/events', params, **options)
1355386
def url(self):
        """"""
        query = {
            'key': self.api_key or default_api_key,
            'person': self.person.to_json(),
            'query_params_mode': self.query_params_mode,
            'exact_name': self.exact_name,
            'prioritize_records_by': ','.join(self._prioritize_records_by),
            'filter_records_by': self._filter_records_by,
        }
        return SearchAPIRequest.BASE_URL + urllib.urlencode(query, doseq=True)
712472
def get_events(params = nil, paging = nil)
      response = @client.get(construct_url(paging), params)
      extract_paging(response)
      response
    end
732296
def _events(self):
        
        with self.app.events_lock:
            res = self.app.get_events()
        return serialize(res, True)
1145581
def fetch_event(urls):
    
    rs = (grequests.get(u) for u in urls)
    return [content.json() for content in grequests.map(rs)]
1337012
def _url_builder(url_root,api_key,path,params):
    
    params['api_key'] = api_key
    url_end = urlencode(params)
    url = "%s%s%s" % (url_root,path,url_end)
    return url
1104747
def get_events(self):
        
        return github.PaginatedList.PaginatedList(
            github.Event.Event,
            self._requester,
            self.url + "/events",
            None
        )
530250
def api_url path, params = {}
      url = File.join File.join(api_base_url, api_base_path), path
      "#{url}?#{api_query_string params}"
    end