Skip to content

Include Authorization Header (Bearer Token) #35

@darren-beckett

Description

@darren-beckett

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions