예제 #1
0
 def create(self, handler, link_url, link_key):
   """ Creates a new link. """
   url = repository_links_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,
                                    handler=handler, link_url=link_url, link_key=link_key)
예제 #2
0
 def all(self):
   """ Returns a list of the links found under the repository. """
   url = repository_links_url(self._namespace, self._repository_name)
   return self._dispatcher.dispatch(url, access_token=self._access_token,
                                         access_token_secret=self._access_token_secret)