Class NewUserGraphQLProxy

java.lang.Object
org.bhn.promotion.core.proxy.NewUserGraphQLProxy

@Component public class NewUserGraphQLProxy extends Object
Service for making GraphQL requests to fetch new user data. It sends requests with the email, tenant ID, and authentication token.
  • Constructor Details

    • NewUserGraphQLProxy

      public NewUserGraphQLProxy()
  • Method Details

    • callGraphQL

      public GraphQLResponse callGraphQL(String email, String tenantId)
      Makes a GraphQL POST request to fetch user data.
      Parameters:
      email - the user's email for the query.
      tenantId - the tenant ID for the request header.
      Returns:
      the GraphQLResponse from the GraphQL service.