Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When user reaches the end of the flow, the response from the API will follow the next format:

Code Block
languagejson
{
    "next_question": "results",
    "options": {
        "EC": {},
        "Injectables": {},
        "IUS": {},
        "IUD": {}
    },
    "next_question_text": ".Great, thanks for telling me more about you! Now I'm ready to recommend some methods that might fit your needs. According to the preferences you have selected, we suggest these methods. You can click on them to learn more.",
    "options_text": [
        "Emergency Contraceptive Pills (ECP)",
        "Injectables",
        "Hormonal IUS (IUD)",
        "IUD"
    ]
}

...