https://github.com/arifurdev/emailvalidator
user authentication and email validation using simple RESTful APIs. Register new users, authenticate users for login, log out users, and validate email addresses using HTTP requests. https://youtu.be/PRxTGBuk16E?si=OXvxDsFSW6kV5YLQ
https://github.com/arifurdev/emailvalidator
apiproject emailvalidation emailvalidation-api laravelapi rest-api restful-api
Last synced: 8 months ago
JSON representation
user authentication and email validation using simple RESTful APIs. Register new users, authenticate users for login, log out users, and validate email addresses using HTTP requests. https://youtu.be/PRxTGBuk16E?si=OXvxDsFSW6kV5YLQ
- Host: GitHub
- URL: https://github.com/arifurdev/emailvalidator
- Owner: ArifurDev
- Created: 2024-04-29T13:55:24.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-06T08:16:53.000Z (over 1 year ago)
- Last Synced: 2025-01-21T01:41:49.488Z (10 months ago)
- Topics: apiproject, emailvalidation, emailvalidation-api, laravelapi, rest-api, restful-api
- Language: PHP
- Homepage:
- Size: 992 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Register New User
### Example Request:
```
POST https://emailchecker.arifurrahmanrifat.com/api/signup?name=arif&email=arifinfott@gmail.com&password=123456&confirm_password=123456
```
### This API register new user
```
$client = new Client();
$headers = \[
'name' => 'Arif',
'email' => 'arif@gmail.com',
'password' => '123456',
'confirm\_password' => '123456'
\];
$body = '';
$request = new Request('POST', 'https://emailchecker.arifurrahmanrifat.com/api/signup?name=arif&email=arifinfott@gmail.com&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/signin?email=arif@gmail.com&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/signin?email=arif@gmail.com&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/emailValidator?email=arif@gmail.com
```
### This API Validate the existenc and validity of an email address
```
$client = new Client();
$request = new Request('POST', 'https://emailchecker.arifurrahmanrifat.com/api/emailValidator?email=arif@gmail.com');
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
```