🧑‍💻Login User

Authenticate a web user by providing their username and password.

Endpoint: POST /login_web_user

Request:

POST /login_web_user
Host: portal.drugnet.com.gh
x-api-key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded

username=your_username&password=your_password

Login Web User

POST /login_web_user

Authenticate a web user by providing their username and password.

Request Body

Take a look at how you might call this method using our official libraries, or via curl:

curl --location --request POST '/login_web_user' \
--header 'x-api-key: YOUR API KEY' \

Example

{
  "success": true,
  "user": {
    "id": 123,
    "name": "John Doe",
    "email": "john.doe@example.com"
  }
}

In case of errors, the API will return a JSON object with a success field indicating whether the request was successful, and a corresponding error message in the message field.

Last updated