# POST
https://www.codegrepper.com/api/login.php
const DataToSend = new FormData();
DataToSend.append("password", "example");
DataToSend.append("email", "[email protected]");
return fetch(`https://www.codegrepper.com/api/login.php`, {
method: "POST",
body: DataToSend,
})
.then((response) => {
return response.json();
})
.then((data) => {
console.log(data);
})
.catch((err) => {
console.log(err);
});
{
"errors": [],
"success": true,
"access_token": "",
"user_id": 98467,
"email": "[email protected]",
"hide_grepper_button": 0,
"grepper_user_langs": [
{
"lkey": "abap",
"name": "Abap",
"enabled": 1
}
],
"blacklists": [
{
"id": 6615,
"user_id": 98467,
"url": "localhost",
"blacklist_type": 4
}
]
}
Param |
Type |
Required |
username |
String |
YES |
password |
String |
YES |