Class: UNBPatreonAPIClientBPLibrary
// NBPatreonAPIClientBPLibrary.h : 9
class UNBPatreonAPIClientBPLibrary
: public UBlueprintFunctionLibrary;
Reflection-enabled
Methods
-
HasBenefit
// NBPatreonAPIClientBPLibrary.h : 48 public: static bool HasBenefit( const FPatreonUserInfo& UserInfo, const FString BenefitName );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient|User Info
Meta Specifiers:
- DisplayName = Has Benefit
- Keywords = NBPatreonAPIClient
Checks if the given User is entitled to a specific benefit/reward
Arguments
-
UserInfo
const FPatreonUserInfo& UserInfo
User to check
-
BenefitName
const FString BenefitName
Returns
-
bool
-
HasBenefit2
// NBPatreonAPIClientBPLibrary.h : 56 public: static bool HasBenefit2( const FPatreonUserInfoImgs& UserInfo, const FString BenefitName );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient|User Info
Meta Specifiers:
- DisplayName = Has Benefit
- Keywords = NBPatreonAPIClient
Checks if the given User is entitled to a specific benefit/reward
Arguments
-
UserInfo
const FPatreonUserInfoImgs& UserInfo
User to check
-
BenefitName
const FString BenefitName
Returns
-
bool
-
HasTier
// NBPatreonAPIClientBPLibrary.h : 32 public: static bool HasTier( const FPatreonUserInfo& UserInfo, const FString TierName );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient|User Info
Meta Specifiers:
- DisplayName = Has Tier
- Keywords = NBPatreonAPIClient
Checks if the given User is pledged to a specific tier.
Arguments
-
UserInfo
const FPatreonUserInfo& UserInfo
User to check
-
TierName
const FString TierName
Name of tier, case-insensitive
Returns
-
bool
-
HasTier2
// NBPatreonAPIClientBPLibrary.h : 40 public: static bool HasTier2( const FPatreonUserInfoImgs& UserInfo, const FString TierName );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient|User Info
Meta Specifiers:
- DisplayName = Has Tier
- Keywords = NBPatreonAPIClient
Checks if the given User is pledged to a specific tier.
Arguments
-
UserInfo
const FPatreonUserInfoImgs& UserInfo
User to check
-
TierName
const FString TierName
Name of tier, case-insensitive
Returns
-
bool
-
HasTokenExpired
// NBPatreonAPIClientBPLibrary.h : 18 public: static bool HasTokenExpired( const FAPITokenInfo& token );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient
Meta Specifiers:
- DisplayName = Has API Token Expired
- Keywords = NBPatreonAPIClient
Checks if a token's lifetime has expired.
Arguments
-
token
const FAPITokenInfo& token
Returns
-
bool
-
IsTokenValid
// NBPatreonAPIClientBPLibrary.h : 24 public: static bool IsTokenValid( const FAPITokenInfo& token );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient
Meta Specifiers:
- DisplayName = Is API Token Valid
- Keywords = NBPatreonAPIClient
Checks if the access token is present and not yet expired
Arguments
-
token
const FAPITokenInfo& token
Returns
-
bool
-
OpenURL
// NBPatreonAPIClientBPLibrary.h : 82 public: static void OpenURL( const FString URL );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|HTTP
Meta Specifiers:
- DisplayName = Open URL
- Keywords = NBPatreonAPIClient
Opens a given URL in the user's default web browser
Arguments
-
URL
const FString URL
-
ParseTokenInfo
// NBPatreonAPIClientBPLibrary.h : 76 public: static bool ParseTokenInfo( FString JsonStr, FAPITokenInfo& TokenInfo );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient
Meta Specifiers:
- DisplayName = Parse API Token Info
- Keywords = NBPatreonAPIClient
Parses a JSON string containing an access token, as provided by the Patreon API. This expects a JSON string of the form:
{ "access_token": <single use token>, "refresh_token" : <single use token>, "expires_in" : <token lifetime duration>, "scope" : <token scopes>, "token_type" : "Bearer" }
Arguments
-
JsonStr
FString JsonStr
The JSON string to parse
-
TokenInfo
FAPITokenInfo& TokenInfo
The parsed TokenInfo object
Returns
-
bool
True if the JsonStr could be parsed, otherwise False. If this returns False, TokenInfo should not be used.
For any questions, help, suggestions or feature requests, please feel free to contact me at nbpsup@gmail.com