PricingBlog

Are there any way of setting API return data, without running the API in the editor?

  • larshaehre-1266134593485017273

    Lars Hæhre

    1 year ago

    I am running an API call to Supabase that returns information.

    But I don't think I will be able to run it in the editor.

    I do know what the API will return, but for me it seems like I do have to run the API in the editor, in order to be able to select which data I for example want to store in a variable?

    Are there anyway to tell Toddle: Select the data return from API -> Data -> Name (without actually running the API?)
  • lucasg-1266135137763065866

    Lucas G

    1 year ago

    Only way to do it would be to set up a Get node and set the path accordingly
  • How come you wouldn't be able to run the call?
  • larshaehre-1266135972920164523

    Lars Hæhre

    1 year ago

    I might be able to do it with some hacking.

    But I am using a magiclink from Supabase. And when I use that link in the email, it doesn't seem to get triggered in the Toddle Editor (as it opens in a new window and stuff).
  • larshaehre-1266136508998357094

    Lars Hæhre

    1 year ago

    Login page -> Sending an email from Supabase to my email with a Token and a link to a validation page -> The Validation page takes that token, sends it back to Supabase and gets an access token in return. This is the API call that I'm not able to do in the editor (as far as I know)
  • But I do know the data returns as I can display it on the page. But it never gets run in the Toddle editor
  • lucasg-1266144364896325726

    Lucas G

    1 year ago

    Ah I think I get it
  • You can copy that URL and set up the call with sample data