Пример #1
0
 def create(self, type, **kwargs):
   """ Creates a new service. """
   url = repository_services_url(self._namespace, self._repository_name)
   return self._dispatcher.dispatch(url, method='POST', access_token=self._access_token,
                                    access_token_secret=self._access_token_secret,
                                    type=type, **kwargs)
Пример #2
0
 def all(self):
   """ Returns a list of the services found under the repository. """
   url = repository_services_url(self._namespace, self._repository_name)
   return self._dispatcher.dispatch(url, access_token=self._access_token,
                                         access_token_secret=self._access_token_secret)