{"info":{"_postman_id":"a2bf7d47-2645-4c2a-bb06-a7de0de75a0a","name":"LoginApi","description":"<html><head></head><body><p>This is documentation of api to login. Only registered users can use this api.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23812562","collectionId":"a2bf7d47-2645-4c2a-bb06-a7de0de75a0a","publishedId":"2s93zB62CF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-06-30T12:30:28.000Z"},"item":[{"name":"POST","id":"743644a2-1ba2-4bd0-aba0-840ea9633353","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"api_service_id\":\"DOWELL10004\",\r\n    \"api_key\":\"c9dfbcd2-8140-4f24-ac3e-50195f651754\",\r\n    \"username\":\"Testing_400410\",\r\n    \"password\":\"dowell123\",\r\n    \"time\":\"12:14\",\r\n    \"ip\":\"150.107.107.49\",\r\n    \"os\":\"Win 11\",\r\n    \"device\":\"Galaxy S23 Ultra\",\r\n    \"location\":\"22.572672 88.363882\",\r\n    \"timezone\":\"Asia/Kolkata\",\r\n    \"language\":\"Hindi\",\r\n    \"browser\":\"chrome\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100014.pythonanywhere.com/api/loginapi/","description":"<p>POST</p>\n<ul>\n<li>The compulsary fields are as follows:<ul>\n<li>api_service_id(The service_id you see in Dowell API services)</li>\n<li>api_key(The key you get from Dowell API services)</li>\n<li>username</li>\n<li>password</li>\n<li>time(This is user's local time)</li>\n<li>ip</li>\n<li>os</li>\n<li>location(This must be in format \"latitude longitude\" (without quotation) )</li>\n<li>timezone( eg: Asia/Kolkata )</li>\n</ul>\n</li>\n<li>The optional fields are as follows:<ul>\n<li>language(if not provided English is submitted to db)</li>\n<li>browser(if not provided empty string is provoded to db)</li>\n<li>device (if not provided, string 'api' is sent to db)</li>\n</ul>\n</li>\n</ul>\n<p>If data provide is correct a response is retured which contains session_id which can be further used in post in userinfoAPI for login data.</p>\n","urlObject":{"protocol":"https","path":["api","loginapi",""],"host":["100014","pythonanywhere","com"],"query":[],"variable":[]}},"response":[{"id":"474f6c02-0165-40cf-bd45-552e4cd660b9","name":"POST","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"api_service_id\":\"DOWELL10002\",\r\n    \"api_key\":\"ENTER API KEY HERE\",\r\n    \"username\":\"Testing_400415\",\r\n    \"password\":\"dowell123\",\r\n    \"time\":\"12:14\",\r\n    \"ip\":\"150.107.107.49\",\r\n    \"os\":\"Win 11\",\r\n    \"device\":\"Galaxy S23 Ultra\",\r\n    \"location\":\"22.572672 88.363882\",\r\n    \"timezone\":\"Asia/Kolkata\",\r\n    \"language\":\"Hindi\",\r\n    \"browser\":\"chrome\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100014.pythonanywhere.com/api/loginapi/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Jul 2023 13:27:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Cookie, Origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Language","value":"en"},{"key":"Set-Cookie","value":"csrftoken=mUrSbpJnwzd0sWUMzEFN8WF0wTxLkZOpk2wdDqssNqF608H3zU7HaxTP1DgqnBZ7; expires=Wed, 10 Jul 2024 13:27:27 GMT; Max-Age=31449600; Path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"sessionid=qw94l4lk5mzojdogd8mvhsvlgfphhxke; expires=Wed, 26 Jul 2023 13:27:27 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax"},{"key":"X-Clacks-Overhead","value":"GNU Terry Pratchett"},{"key":"Server","value":"PythonAnywhere"}],"cookie":[],"responseTime":null,"body":"{\n    \"session_id\": \"qw94l4lk5mzojdogd8mvhsvlgfphhxke\",\n    \"remaining_times\": 6\n}"},{"id":"5997a161-9d7f-422b-9a0e-83358da946f0","name":"POST","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"api_service_id\":\"DOWELL10002\",\r\n    \"api_key\":\"\",\r\n    \"username\":\"Testing_400415\",\r\n    \"password\":\"dowell123\",\r\n    \"time\":\"12:14\",\r\n    \"ip\":\"150.107.107.49\",\r\n    \"os\":\"Win 11\",\r\n    \"device\":\"Galaxy S23 Ultra\",\r\n    \"location\":\"22.572672 88.363882\",\r\n    \"timezone\":\"Asia/Kolkata\",\r\n    \"language\":\"Hindi\",\r\n    \"browser\":\"chrome\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100014.pythonanywhere.com/api/loginapi/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Jul 2023 13:27:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Cookie, Origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Language","value":"en"},{"key":"Set-Cookie","value":"csrftoken=mUrSbpJnwzd0sWUMzEFN8WF0wTxLkZOpk2wdDqssNqF608H3zU7HaxTP1DgqnBZ7; expires=Wed, 10 Jul 2024 13:27:27 GMT; Max-Age=31449600; Path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"sessionid=qw94l4lk5mzojdogd8mvhsvlgfphhxke; expires=Wed, 26 Jul 2023 13:27:27 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax"},{"key":"X-Clacks-Overhead","value":"GNU Terry Pratchett"},{"key":"Server","value":"PythonAnywhere"}],"cookie":[],"responseTime":null,"body":"{\n    \"session_id\": \"qw94l4lk5mzojdogd8mvhsvlgfphhxke\",\n    \"remaining_times\": 6\n}"}],"_postman_id":"743644a2-1ba2-4bd0-aba0-840ea9633353"}]}