Search Unity

Send API request using UnityWebRequest

Discussion in 'Scripting' started by ksc_3899, Jul 13, 2019.

  1. ksc_3899

    ksc_3899

    Joined:
    Jan 1, 2019
    Posts:
    30
    I am currently building a game for which I need access to real time data from a server. How do I send an API request to it? And also how similar is it from pulling a JSON from a given URL? I am currently doing that, but the second scenario has no requirement of any auth and I am unable to figuere out how to manage with auth. So can anyone help me with the entire code required for sending an API request?