Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
LoyaltyClient
Create authentication network requests by using the LoyaltyClient class. LoyaltyClient uses ForceAuthenticator, which is an interface that defines the methods
to handle access tokens in the Salesforce API. LoyaltyClient
creates a retrofit instance to invoke Force APIs.
| Available in: all editions that have Loyalty Management enabled |
Use this signature to define the LoyaltyClient
class.
1public final class LoyaltyClient
2extends NetworkClientgetNetworkClient Method
Gives an implementation of the retrofit interface using an instance of retrofit.
1LoyaltyApiInterface getNetworkClient()