Onairos
  • 🔮Welcome to Onairos
  • Installation
  • API Reference
  • LLM Memory SDK
  • 🖱️Developer Guides
    • Integrate Onairos Web
      • ⬇️Installation
      • 🔅1 Line of Code
      • Manual API Call
        • 📥Receiving API
        • 🖥️Using the Inference API
      • 📲Inference API Response
      • 🏟️Examples
    • Integrate Onairos Mobile
      • ⬇️Installation
      • 🔅1 Line of Code
      • Manual API Call
        • 📥Receiving API
        • 🖥️Using the Inference API
      • 📲Inference API Response
      • 🏟️Examples
    • Example Usage of Data
    • 🚤Coming Soon
    • Developer FAQ
    • Developer Debugging
  • Overview
    • 🦄Digital Personality
    • 🔐Security and Privacy
Powered by GitBook
On this page
  1. Developer Guides
  2. Integrate Onairos Mobile
  3. Manual API Call

Receiving API

Once the user has authorized your access to their data you will receive an access token and api endpoint

Receiving the Inference API

Once the user has clicked to Connect their Onairos account and authroized their data, you will recieve the Inference API via input parameter to your onResolved function which was used as input earlier into the Onairos Button

Your onResolved callback function must be defined with the following signature:

  Future<void> onResolved(String apiUrl, String accessToken) async {

You will also be given an ACCESS TOKEN which you must use in any API requests from that specific client.

This is a short lived token, for usage on your developer registered domain only, and lasts for 1 hour from issue.

For example:

Future<void> onResolved(String apiUrl, String accessToken) async {
    try {
     //Fetch the the User Onairos Data Here

You will also receive the approved choices from the user.

PreviousManual API CallNextUsing the Inference API

Last updated 1 year ago

🖱️
📥