UserClient class to manage user data collection from user endpoint #3143
Labels
effort: [S]
1-2 days of estimated development time
Module: dashboard
type: sub-task
Indicates the issue is a sub-task linked to an epics card
Sub-task for epics #3067 #3068 #3069
This class will fetch the user data from our user endpoint and cache it.
Architecture
inc/Engine/License/API
, namespaceWP_Rocket\Engine\License\API
UserClient
Options_Data
instance to get license dataMethods
get_raw_user_data()
: the method sends the request to the API endpoint to get the data. To have a successful request, we need to pass theconsumer_key
anduser_id
as parameters in the body of the requestget_user_data()
: the method first gets the data from the cache (transientwp_rocket_customer_data
), or if no cache, callsget_raw_user_data()
to get it and cache it.Tests
The text was updated successfully, but these errors were encountered: