Unity: POST request using WWW class using JSON

后端 未结 4 1510
情话喂你
情话喂你 2021-01-07 01:18

I am trying to make a POST request to restful web APIs in Unity.

The header would be Content-Type: application/json

An example of the raw data i

4条回答
  •  轮回少年
    2021-01-07 01:38

    I've done for doing this below. Let's go : ==>

    using UnityEngine;
    
    using UnityEngine.UI;
    
    using System.Collections;
    
    using System.Collections.Generic;
    
    public class btnGetData : MonoBehaviour {
    
     void Start()
     {
         gameObject.GetComponent

提交回复
热议问题