Skip to content

Latest commit

 

History

History
91 lines (55 loc) · 1.88 KB

README.md

File metadata and controls

91 lines (55 loc) · 1.88 KB

Register New User

Example Request:

POST https://emailchecker.arifurrahmanrifat.com/api/signup?name=arif&[email protected]&password=123456&confirm_password=123456

This API register new user

$client = new Client();

$headers = \[

'name' => 'Arif',

'email' => '[email protected]',

'password' => '123456',

'confirm\_password' => '123456'

\];

$body = '';

$request = new Request('POST', 'https://emailchecker.arifurrahmanrifat.com/api/signup?name=arif&[email protected]&password=123456&confirm_password=123456', $headers, $body);

$res = $client->sendAsync($request)->wait();

echo $res->getBody();

User Login Authentication

Example Request:

POST https://emailchecker.arifurrahmanrifat.com/api/[email protected]&password=123456

This API login Authenticates the user with the provided email and password

$client = new Client();

$request = new Request('POST', 'https://emailchecker.arifurrahmanrifat.com/api/[email protected]&password=123456');

$res = $client->sendAsync($request)->wait();

echo $res->getBody();

User Logout

Example Request:

GET https://emailchecker.arifurrahmanrifat.com/api/user-logout

Logs out the currently logged-in user and removes the login token.

$client = new Client();

$request = new Request('GET', 'https://emailchecker.arifurrahmanrifat.com/api/user-logout');

$res = $client->sendAsync($request)->wait();

echo $res->getBody();

Email Address Validation

Example Request:

POST https://emailchecker.arifurrahmanrifat.com/api/[email protected]

This API Validate the existenc and validity of an email address

$client = new Client();

$request = new Request('POST', 'https://emailchecker.arifurrahmanrifat.com/api/[email protected]');

$res = $client->sendAsync($request)->wait();

echo $res->getBody();