You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This client is designed for Unity projects and uses Unity-specific features like Debug.Log.
Make sure to handle exceptions and errors as per your project's requirements.
Customize the client as needed to fit the specific needs of your API.
Examples
Example (Simple Get Call)
[ContextMenu("External API Call")]publicasyncTaskSimpleSomeOtherGetApiCall(){//cahce your APIClient to reuse resources, like first example in field Clientvarr=awaitnewAPIClient("https://api.agify.io").GetAsync<UserInfo>("?name=michael");Debug.Log($"Name: {r.Name}\r\nAge: {r.Age}\r\nCount: {r.Count}");}
versatile and robust HTTP client for Unity, designed to simplify communication with RESTful APIs. Built using the .NET HttpClient, this client supports asynchronous operations, JSON serialization with Newtonsoft.Json