MCPcopy Index your code
hub / github.com/ryanmcgrath/twython / get_url

Method get_url

tests/test_core.py:25–27  ·  view source on GitHub ↗

Convenience function for mapping from endpoint to URL

(self, endpoint)

Source from the content-addressed store, hash-verified

23 self.api = Twython('', '', '', '')
24
25 def get_url(self, endpoint):
26 """Convenience function for mapping from endpoint to URL"""
27 return '%s/%s.json' % (self.api.api_url % self.api.api_version, endpoint)
28
29 def register_response(self, method, url, body='{}', match_querystring=False,
30 status=200, adding_headers=None, stream=False,

Calls

no outgoing calls

Tested by

no test coverage detected