The following code allows for a Bearer Token to be included in the download request.
Davinci.cs:
private string authToken;
...
/// <summary>
/// Set authorization token.
/// </summary>
/// <param name="token">authorization token</param>
/// <returns></returns>
public Davinci setAuthToken(string token)
{
if (enableLog)
Debug.Log("[Davinci] Authorization Token set: " + token);
authToken = token;
return this;
}
Example Usage:
Davinci.get().load(imageUrl).setAuthToken(strToken).into(myGameObject).start();
The following code allows for a Bearer Token to be included in the download request.
Davinci.cs:
private string authToken;...
Example Usage:
Davinci.get().load(imageUrl).setAuthToken(strToken).into(myGameObject).start();