sendImage

Sends an image to the Nutrition Advisor.

  /**
   * Sends an image to the Nutrition Advisor.
   * @param imageURI - The local URI of the image to be sent.
   * @returns A Promise resolving to the status of the image sending.
   */
  sendImage(imageURI: string): Promise< | null>

Example

import { NutritionAdvisor } from '@passiolife/nutritionai-react-native-sdk-v3'
 const response = await NutritionAdvisor.sendImage(imageURI)
 
 switch (response?.status) {
          case 'Success':
            // get your response here {response.response}
            return
          case 'Error':
          // get your erorr response here {response.message}
            return
        }

it's returns PassioAdvisorMessageResultStatus

Last updated