Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ModIO.APIClient.AssertAuthorizationDetails

Jackson Wood edited this page Mar 6, 2019 · 9 revisions

APIClient.AssertAuthorizationDetails

public static bool AssertAuthorizationDetails(bool isUserTokenRequired);

Parameters

Name Description
isUserTokenRequired If true, will assert that that (UserAuthenticationData.instance.token)[ModIO.UserAuthenticationData.token] value is not null or empty.

Returns

bool: True if all the neccessary authorization details for an API request have been set.

Description

Asserts that the required authorization data for making API requests is set.

NOTE: This function only asserts that the values have been set, but does not check the correctness of those values.

Clone this wiki locally