Example #1
0
    // Update is called once per frame
    public void Submit()
    {
        var post = new User {
            username = input.text,
        };

        Debug.Log(post.username);
        Request request = new Request {
            uri  = "/test",
            body = post
        };

        request.RequestSuccessEvents += OnSuccess;
        request.RequestFailedEvents  += OnFailure;
        IlluminaWebRequest.Post <User>(request);
    }
Example #2
0
 public static void Store <T>(Request request)
 {
     IlluminaWebRequest.Post <T>(request);
 }