Class: UNBPatreonAPIClientBPLibrary
// NBPatreonAPIClientBPLibrary.h : 12
class UNBPatreonAPIClientBPLibrary
: public UBlueprintFunctionLibrary;
Reflection-enabled
Methods
-
CopyToClipboard// NBPatreonAPIClientBPLibrary.h : 182 public: static void CopyToClipboard( const FString str );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Utils
Meta Specifiers:
- DisplayName = Copy to Clipboard
- Keywords = NBPatreonAPIClient
Copies the given string to the user's clipboard
Arguments
-
strconst FString str
-
HasBenefit// NBPatreonAPIClientBPLibrary.h : 67 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
-
UserInfoconst FPatreonUserInfo& UserInfoUser to check
-
BenefitNameconst FString BenefitName
Returns
-
bool
-
HasBenefit2// NBPatreonAPIClientBPLibrary.h : 75 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
-
UserInfoconst FPatreonUserInfoImgs& UserInfoUser to check
-
BenefitNameconst FString BenefitName
Returns
-
bool
-
HasTier// NBPatreonAPIClientBPLibrary.h : 35 public: static bool HasTier( const FPatreonUserInfo& UserInfo, const FString TierName );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient|User Info
Meta Specifiers:
- DisplayName = Has Tier (by Title)
- Keywords = NBPatreonAPIClient
Checks if the given User is pledged to a specific tier.
Arguments
-
UserInfoconst FPatreonUserInfo& UserInfoUser to check
-
TierNameconst FString TierNameName of tier, case-insensitive
Returns
-
bool
-
HasTier2// NBPatreonAPIClientBPLibrary.h : 43 public: static bool HasTier2( const FPatreonUserInfoImgs& UserInfo, const FString TierName );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient|User Info
Meta Specifiers:
- DisplayName = Has Tier (by Title)
- Keywords = NBPatreonAPIClient
Checks if the given User is pledged to a specific tier.
Arguments
-
UserInfoconst FPatreonUserInfoImgs& UserInfoUser to check
-
TierNameconst FString TierNameName of tier, case-insensitive
Returns
-
bool
-
HasTierById// NBPatreonAPIClientBPLibrary.h : 51 public: static bool HasTierById( const FPatreonUserInfo& UserInfo, const FString TierId );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient|User Info
Meta Specifiers:
- DisplayName = Has Tier (by ID)
- Keywords = NBPatreonAPIClient
Checks if the given User is pledged to a specific tier.
Arguments
Returns
-
bool
-
HasTierById2// NBPatreonAPIClientBPLibrary.h : 59 public: static bool HasTierById2( const FPatreonUserInfoImgs& UserInfo, const FString TierId );
Reflection-enabled
Specifiers:
- BlueprintPure
- BlueprintCallable
- Category = NBPatreonAPIClient|User Info
Meta Specifiers:
- DisplayName = Has Tier (by ID)
- Keywords = NBPatreonAPIClient
Checks if the given User is pledged to a specific tier.
Arguments
Returns
-
bool
-
HasTokenExpired// NBPatreonAPIClientBPLibrary.h : 21 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
-
tokenconst FAPITokenInfo& token
Returns
-
bool
-
IsTokenValid// NBPatreonAPIClientBPLibrary.h : 27 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
-
tokenconst FAPITokenInfo& token
Returns
-
bool
-
OpenURL// NBPatreonAPIClientBPLibrary.h : 176 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
-
URLconst FString URL
-
ParseCampaignInfo// NBPatreonAPIClientBPLibrary.h : 170 public: static bool ParseCampaignInfo( FString JsonStr, FString& CampaignID, TArray<FPatreonTierInfo>& Tiers );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Campaign
Meta Specifiers:
- DisplayName = Parse Campaign Info
- Keywords = NBPatreonAPIClient
Parses a JSON string containing a creator's campaign information.
Arguments
-
JsonStrFString JsonStrThe JSON string to parse
-
CampaignIDFString& CampaignIDThe creator's campaign ID
-
TiersTArray<FPatreonTierInfo>& Tiers
Returns
-
boolTrue if JsonStr could be parsed, otherwise false. If this is false, CampaignID and Tiers should not be used.
-
ParseTokenInfo// NBPatreonAPIClientBPLibrary.h : 160 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
-
JsonStrFString JsonStrThe JSON string to parse
-
TokenInfoFAPITokenInfo& TokenInfoThe parsed TokenInfo object
Returns
-
boolTrue if the JsonStr could be parsed, otherwise False. If this returns False, TokenInfo should not be used.
-
PledgedToTierAfter// NBPatreonAPIClientBPLibrary.h : 110 public: static bool PledgedToTierAfter( const FPatreonPledgeHistory& PledgeHistory, const FString& tierName, const FDateTime& date );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Pledge History
Meta Specifiers:
- DisplayName = Pledged To Tier After (by Title)
- Keywords = NBPatreonAPIClient
Checks if a user was pledged to a specific tier at any time after a given date (inclusive)
Arguments
-
PledgeHistoryconst FPatreonPledgeHistory& PledgeHistoryThe pledge history to search
-
tierNameconst FString& tierNameThe Title of the Tier to search for
-
dateconst FDateTime& dateThe minimum date to consider
Returns
-
boolTrue if the user pledged to the given tier after the given date
-
PledgedToTierAfter2// NBPatreonAPIClientBPLibrary.h : 120 public: static bool PledgedToTierAfter2( const FPatreonPledgeHistory& PledgeHistory, const FString& tierId, const FDateTime& date );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Pledge History
Meta Specifiers:
- DisplayName = Pledged To Tier After (by ID)
- Keywords = NBPatreonAPIClient
Checks if a user was pledged to a specific tier at any time after a given date (inclusive)
Arguments
-
PledgeHistoryconst FPatreonPledgeHistory& PledgeHistoryThe pledge history to search
-
tierIdconst FString& tierIdThe ID of the Tier to search for
-
dateconst FDateTime& dateThe minimum date to consider
Returns
-
boolTrue if the user pledged to the given tier after the given date
-
PledgedToTierBefore// NBPatreonAPIClientBPLibrary.h : 130 public: static bool PledgedToTierBefore( const FPatreonPledgeHistory& PledgeHistory, const FString& tierName, const FDateTime& date );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Pledge History
Meta Specifiers:
- DisplayName = Pledged To Tier Before (by Title)
- Keywords = NBPatreonAPIClient
Checks if a user was pledged to a specific tier at any time before a given date (inclusive)
Arguments
-
PledgeHistoryconst FPatreonPledgeHistory& PledgeHistoryThe pledge history to search
-
tierNameconst FString& tierNameThe Title of the Tier to search for
-
dateconst FDateTime& dateThe maximum date to consider
Returns
-
boolTrue if the user pledged to the given tier before the given date
-
PledgedToTierBefore2// NBPatreonAPIClientBPLibrary.h : 140 public: static bool PledgedToTierBefore2( const FPatreonPledgeHistory& PledgeHistory, const FString& tierId, const FDateTime& date );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Pledge History
Meta Specifiers:
- DisplayName = Pledged To Tier Before (by ID)
- Keywords = NBPatreonAPIClient
Checks if a user was pledged to a specific tier at any time before a given date (inclusive)
Arguments
-
PledgeHistoryconst FPatreonPledgeHistory& PledgeHistoryThe pledge history to search
-
tierIdconst FString& tierIdThe ID of the Tier to search for
-
dateconst FDateTime& dateThe maximum date to consider
Returns
-
boolTrue if the user pledged to the given tier before the given date
-
PledgedToTiersAfter// NBPatreonAPIClientBPLibrary.h : 92 public: static TArray<FString> PledgedToTiersAfter( const FPatreonPledgeHistory& PledgeHistory, const FDateTime& date );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Pledge History
Meta Specifiers:
- DisplayName = Pledged To Tiers After
- Keywords = NBPatreonAPIClient
Returns a list of all tiers a user pledged to after a given date (inclusive)
Arguments
-
PledgeHistoryconst FPatreonPledgeHistory& PledgeHistoryThe pledge history to search
-
dateconst FDateTime& dateThe minimum date to include results for
Returns
-
TArray<FString>
-
PledgedToTiersBefore// NBPatreonAPIClientBPLibrary.h : 100 public: static TArray<FString> PledgedToTiersBefore( const FPatreonPledgeHistory& PledgeHistory, const FDateTime& date );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Pledge History
Meta Specifiers:
- DisplayName = Pledged To Tiers Before
- Keywords = NBPatreonAPIClient
Returns a list of all tiers a user pledged to before a given date (inclusive)
Arguments
-
PledgeHistoryconst FPatreonPledgeHistory& PledgeHistoryThe pledge history to search
-
dateconst FDateTime& dateThe maximum date to include results for
Returns
-
TArray<FString>
-
PledgedToTiersDuring// NBPatreonAPIClientBPLibrary.h : 84 public: static TArray<FString> PledgedToTiersDuring( const FPatreonPledgeHistory& PledgeHistory, const int32 year, const int32 month );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient|Pledge History
Meta Specifiers:
- DisplayName = Pledged To Tiers During
- Keywords = NBPatreonAPIClient
Returns a list of all tiers a user pledged to during a given month.
Arguments
-
PledgeHistoryconst FPatreonPledgeHistory& PledgeHistoryThe pledge history to search
-
yearconst int32 yearThe year to match
-
monthconst int32 monthThe month in the year to match
Returns
-
TArray<FString>
For any questions, help, suggestions or feature requests, please feel free to contact me at nbpsup@gmail.com