Skip to content

A token-based REST API built with PHP, providing image search, weather updates, and user information retrieval. It supports daily query limits, token validation, and role-based authorization, making it ideal for educational purposes and secure API usage.

Notifications You must be signed in to change notification settings

enestoy/Tokenized-API-Image-Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tokenized API - Image & Weather Retrieval

Overview

This is a simple, token-based REST API built using PHP. It allows you to retrieve various types of data including:

  • Weather updates for different cities.
  • Image search by name.
  • User information (name, age, and city).

Key Features

  • Token-based Authentication: Only authorized users with valid tokens can access the API.
  • Rate Limiting: Daily query limits to prevent abuse.
  • Role-based Access Control: Different permission levels for different users.

API Endpoints

1. GET /info - Retrieve user information

2. GET /weather - Get the current weather for a city

3. GET /image - Search for images by name

4. GET /token - Generate a new token

License

This project is open source and available under the MIT License.

Tags

#PHP #API #RESTAPI #TokenAuthentication #WeatherAPI #ImageSearch #RateLimit #EducationalAPI #Security #WebDevelopment

About

A token-based REST API built with PHP, providing image search, weather updates, and user information retrieval. It supports daily query limits, token validation, and role-based authorization, making it ideal for educational purposes and secure API usage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages