Closed owiegand closed 6 years ago
Finished this code in the 2e5f34c457da77f03e5a0cfc1cd24823031fc9f3 commit.
The code expects the following parameters via POST:
username
friend_username
token
When there is an error and we don't want to change any rows the following response is generated:
{
"success":false,
"debug":"No Rows Affected"
}
The other debug messages that can be expected during a failure are:
A username must be entered!
A friends username must be entered!
An token must be entered!
User token doesn't match
And other messages relating to mysql connections failing
In the case of the successful confirmation of friendship the following response is generated:
{
"success":true,
}
POST Request: receives:
username, friend_username, token
returns:success