Login:
POST https://titanicmessage.pythonanywhere.com/login
Send a POST request with the following JSON body:
{ "username": "your_username", "password": "your_password" }
fetch('https://titanicmessage.pythonanywhere.com/login', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ username: 'your_username', password: 'your_password' }) }) .then(response => response.json()) .then(data => { if (data.message === 'Login successful') { console.log('Login successful!'); } else { console.log('Login failed: ' + data.message); } }) .catch(error => console.error('Error:', error));
import requests url = 'https://titanicmessage.pythonanywhere.com/login' data = { 'username': 'your_username', 'password': 'your_password' } response = requests.post(url, json=data) if response.status_code == 200: result = response.json() if result.get('message') == 'Login successful': print('Login successful!') else: print('Login failed:', result.get('message')) else: print('Error:', response.status_code)
Home | Updates | Community Guidelines | Privacy Policy | Terms of use | Download | Blog