This is a Python-based API project designed to automate the login process for a mobile application. The API will simulate user interactions and handles session registration, browser authentication, and authorization token retrieval, providing a seamless and automated way to authenticate users.
Develop the functionality to automate the initial session registration process by sending a request to the JSONPlaceholder for Development endpoint to obtain a client ID/user id.
Tasks:
Create a new endpoint /register_session in the Flask application.
Capture necessary parameters (user agent, device ID, signature) from the request body.
Develop the functionality to automate the initial session registration process by sending a request to the JSONPlaceholder for Development endpoint to obtain a client ID/user id.
Tasks:
Create a new endpoint /register_session in the Flask application.
Capture necessary parameters (user agent, device ID, signature) from the request body.
Send a POST request to https://jsonplaceholder.typicode.com/posts with the captured parameters.
Handle the response to extract and return the client ID.