We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfc6f6 commit 7e28abdCopy full SHA for 7e28abd
pythonanywhere/api.py
@@ -23,9 +23,9 @@ class AuthenticationError(Exception):
23
pass
24
25
26
-def get_api_endpoint():
+def get_api_endpoint(flavour="webapps"):
27
domain = os.environ.get('PYTHONANYWHERE_DOMAIN', 'pythonanywhere.com')
28
- return 'https://www.{domain}/api/v0/user/{{username}}/webapps/'.format(domain=domain)
+ return 'https://www.{domain}/api/v0/user/{{username}}/{{flavour}}/'.format(domain=domain, flavour=flavour)
29
30
31
def call_api(url, method, **kwargs):
0 commit comments