Class: UGetPatreonUserInfoImgAsyncAction
// GetPatreonUserInfoImgAsyncAction.h : 24
class NBPATREONAPICLIENT_API UGetPatreonUserInfoImgAsyncAction
: public UCancellableAsyncAction;
Reflection-enabled
Retrieves information about a Patreon user, including their avatar image and any images for their pledged tiers.
Can be used to check if they are subscribed to a specific tier in order to unlock content, display information about their subscription, etc.
Requires an access token obtained by some authentication method.
Properties
-
OnCompletepublic: FGetPatreonUserInfoImgAsyncActionEvent OnComplete;
Reflection-enabled
Specifiers:
- BlueprintAssignable
Event fired when the task completes successfully -
OnFailpublic: FGetPatreonUserInfoImgAsyncActionFailedEvent OnFail;
Reflection-enabled
Specifiers:
- BlueprintAssignable
Event fired if the task fails for any reason
Methods
-
Activate// GetPatreonUserInfoImgAsyncAction.h : 58 public: virtual void Activate() override;Starts the task
-
Cancel// GetPatreonUserInfoImgAsyncAction.h : 63 public: virtual void Cancel() override;Can be called to cancel the task and prevent callbacks from being called
-
GetPatreonUserInfoImgAsyncAction// GetPatreonUserInfoImgAsyncAction.h : 40 public: static UGetPatreonUserInfoImgAsyncAction* GetPatreonUserInfoImgAsyncAction( const UObject* WorldContext, FAPITokenInfo TokenInfo );
Reflection-enabled
Specifiers:
- BlueprintCallable
- Category = NBPatreonAPIClient
Meta Specifiers:
- DisplayName = Get User Info (w/ images)
- Keywords = NBPatreonAPIClient
- WorldContext = WorldContext
- BlueprintInternalUseOnly = true
Retrieves information about the user corresponding to a specific access token, AND fetches any relevant images, e.g. their avatar and images from any pledged tiers.
Will fail if the access token is empty, invalid, or expired.
Arguments
-
WorldContextconst UObject* WorldContext -
TokenInfoFAPITokenInfo TokenInfoToken information for the user
Returns
-
UGetPatreonUserInfoImgAsyncAction*
For any questions, help, suggestions or feature requests, please feel free to contact me at nbpsup@gmail.com