All Projects → dilmerv → Unityrestclient

dilmerv / Unityrestclient

A Restful Client For Unity3d Developers

Labels

Projects that are alternatives of or similar to Unityrestclient

Testbedhdrp
Testbed project for Unity HDRP (High Definition Render Pipeline)
Stars: ✭ 859 (+1520.75%)
Mutual labels:  shaderlab
Uiblur
UI Blur Shader
Stars: ✭ 35 (-33.96%)
Mutual labels:  shaderlab
Arfoundation vfx
AR Foundation setup for URP and VFX graph
Stars: ✭ 41 (-22.64%)
Mutual labels:  shaderlab
2d Shaders Book Foundations Exercises
Exercises for the first book of the 2D Shader Development series.
Stars: ✭ 15 (-71.7%)
Mutual labels:  shaderlab
Stanford Bunny Fur With Unity
Using the Geometry Shader to generate fur on GPU.
Stars: ✭ 33 (-37.74%)
Mutual labels:  shaderlab
Sprites Outline
Outline effect for Unity SpriteRenderer
Stars: ✭ 39 (-26.42%)
Mutual labels:  shaderlab
Shaderlabvs
ShaderlabVS is a Visual Studio plugin for Unity Shaderlab programming
Stars: ✭ 841 (+1486.79%)
Mutual labels:  shaderlab
Xrinteractiondemo
XR Interaction Toolkit examples for AR and VR.
Stars: ✭ 47 (-11.32%)
Mutual labels:  shaderlab
Cubism Shader
A shader that creates a cubism effect based on voronoi segmentation in Unity 3d
Stars: ✭ 34 (-35.85%)
Mutual labels:  shaderlab
Mateimageeffects
Post screen effects for Unity
Stars: ✭ 39 (-26.42%)
Mutual labels:  shaderlab
Shaderlibs
topameng's shader libs
Stars: ✭ 27 (-49.06%)
Mutual labels:  shaderlab
Npr
NPREffect
Stars: ✭ 32 (-39.62%)
Mutual labels:  shaderlab
Packedrgbmshader
32-bit packed color format with RGBM encoding for shader use
Stars: ✭ 39 (-26.42%)
Mutual labels:  shaderlab
Geotoybox
Stars: ✭ 13 (-75.47%)
Mutual labels:  shaderlab
Post Processing Demo
Demo for post-processing implement in Unity.
Stars: ✭ 42 (-20.75%)
Mutual labels:  shaderlab
Inkpainter
Texture-Paint on Unity.
Stars: ✭ 849 (+1501.89%)
Mutual labels:  shaderlab
Unity Cubeprojector
Stars: ✭ 38 (-28.3%)
Mutual labels:  shaderlab
Distortionimageeffect
An image effect based distortion/heat effect that doesn't use grab pass
Stars: ✭ 51 (-3.77%)
Mutual labels:  shaderlab
Anisotropichair
Stars: ✭ 46 (-13.21%)
Mutual labels:  shaderlab
Unity Grabsquares Effect
Unity GrabSquares Effect
Stars: ✭ 39 (-26.42%)
Mutual labels:  shaderlab

UnityRestClient

A Restful Client that allows making simple GET, POST, PUT, and DELETE http calls from within Unity3d.

How to Use It ?

There are two scenes currently in the project that can be used to find out how to use it. Also few snippets below to demo its functionality within Unity3d.

  1. Example of how to call Azure Vision API
// setup the request header
RequestHeader clientHeader = new RequestHeader {
    Key = clientId,
    Value = clientSecret
};

// build image url required by Azure Vision OCR
ImageUrl imageUrl = new ImageUrl {
    Url = "https://github.com/dilmerv/AzureVisionAPI/blob/master/images/IMG_5301.JPG?raw=true"
};

// send a post request
StartCoroutine(RestWebClient.Instance.HttpPost(baseUrl, JsonUtility.ToJson(imageUrl), (r) => OnRequestComplete(r), new List<RequestHeader> 
{
    clientHeader
}));
  1. Example of Get and Post
// send a get request
StartCoroutine(RestWebClient.Instance.HttpGet($"{baseUrl}api/values", (r) => OnRequestComplete(r)));

// setup the request header
RequestHeader header = new RequestHeader {
    Key = "Content-Type",
    Value = "application/json"
};

// send a post request
StartCoroutine(RestWebClient.Instance.HttpPost($"{baseUrl}api/values", 
JsonUtility.ToJson(new Player { FullName = "John Doe" }), 
    (r) => OnRequestComplete(r), new List<RequestHeader> { header } ));
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].