🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

easy_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy_api

EasyAPI: Simplified REST API Calls for Unity Easily integrate RESTful APIs into your Unity projects with EasyAPI, a lightweight, async-friendly package designed to streamline HTTP requests. Whether you're interacting with third-party services or building your own backend, EasyAPI makes sending GET, POST, PUT, and DELETE requests a breeze, all while handling authentication headers, serialization, and error handling seamlessly. Key Features: *Simplified API interactions using UniTask for asynchronous programming. *Easily send GET, POST, PUT, and DELETE requests with automatic JSON serialization. *Support for common authentication schemes like Bearer and Basic token. *Built-in success and failure callbacks to handle responses efficiently. *Lightweight and easy-to-use, with minimal setup required. Whether you're developing a game, an app, or any Unity-based project that requires external data, EasyAPI allows you to connect to APIs in just a few lines of code—empowering you to focus on building great experiences instead of dealing with complex HTTP logic.

0.0.3
NuGet
Version published
Maintainers
1
Created
Source

EasyAPI for Unity

EasyAPI is a lightweight Unity plugin for handling REST API requests (GET, POST, PUT, DELETE) with ease. Designed for Unity developers who need to connect to RESTful APIs, EasyAPI provides async-friendly calls, token-based authentication, and simple response handling.

Features

  • Supports GET, POST, PUT, and DELETE requests.
  • Async support with UniTask for smoother performance.
  • Built-in authentication support (Bearer and Basic tokens).
  • Callback support for success and failure responses.

Installation

  • Install the package from NuGet.
  • Import the namespace:
    using EasyAPIPlugin;
    

Sample API Call

 List<Post> posts = await EasyAPI.Get<List<Post>>("https://jsonplaceholder.typicode.com/posts");
 Debug.Log($"post:{JsonConvert.SerializeObject(posts)}");

Keywords

Unity

FAQs

Package last updated on 20 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts