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

    • str

      const 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

    • UserInfo

      const FPatreonUserInfo& UserInfo
      

      User to check

    • BenefitName

      const 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

    • UserInfo

      const FPatreonUserInfoImgs& UserInfo
      

      User to check

    • BenefitName

      const 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

    • UserInfo

      const FPatreonUserInfo& UserInfo
      

      User to check

    • TierName

      const FString TierName
      

      Name 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

    • UserInfo

      const FPatreonUserInfoImgs& UserInfo
      

      User to check

    • TierName

      const FString TierName
      

      Name 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

    • UserInfo

      const FPatreonUserInfo& UserInfo
      

      User to check

    • TierId

      const FString TierId
      

      ID of tier


    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

    • UserInfo

      const FPatreonUserInfoImgs& UserInfo
      

      User to check

    • TierId

      const FString TierId
      

      ID of tier


    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

    • token

      const 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

    • token

      const 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

    • URL

      const 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

    • JsonStr

      FString JsonStr
      

      The JSON string to parse

    • CampaignID

      FString& CampaignID
      

      The creator's campaign ID

    • Tiers

      TArray<FPatreonTierInfo>& Tiers
      

    Returns

    • bool
      

      True 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

    • 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.

  • 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

    • PledgeHistory

      const FPatreonPledgeHistory& PledgeHistory
      

      The pledge history to search

    • tierName

      const FString& tierName
      

      The Title of the Tier to search for

    • date

      const FDateTime& date
      

      The minimum date to consider


    Returns

    • bool
      

      True 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

    • PledgeHistory

      const FPatreonPledgeHistory& PledgeHistory
      

      The pledge history to search

    • tierId

      const FString& tierId
      

      The ID of the Tier to search for

    • date

      const FDateTime& date
      

      The minimum date to consider


    Returns

    • bool
      

      True 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

    • PledgeHistory

      const FPatreonPledgeHistory& PledgeHistory
      

      The pledge history to search

    • tierName

      const FString& tierName
      

      The Title of the Tier to search for

    • date

      const FDateTime& date
      

      The maximum date to consider


    Returns

    • bool
      

      True 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

    • PledgeHistory

      const FPatreonPledgeHistory& PledgeHistory
      

      The pledge history to search

    • tierId

      const FString& tierId
      

      The ID of the Tier to search for

    • date

      const FDateTime& date
      

      The maximum date to consider


    Returns

    • bool
      

      True 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

    • PledgeHistory

      const FPatreonPledgeHistory& PledgeHistory
      

      The pledge history to search

    • date

      const FDateTime& date
      

      The 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

    • PledgeHistory

      const FPatreonPledgeHistory& PledgeHistory
      

      The pledge history to search

    • date

      const FDateTime& date
      

      The 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

    • PledgeHistory

      const FPatreonPledgeHistory& PledgeHistory
      

      The pledge history to search

    • year

      const int32 year
      

      The year to match

    • month

      const int32 month
      

      The 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