New component xano

Hello, I have noticed that in the thunkable web page in the integrations section, in addition to adding WEBFLOW (Recently added) they have also added XANO, does anyone know when it will be available?

2 Likes

I previously made a Xano demo using API connection. See this
https://x.thunkable.com/projectPage/617031d98d7dfb0010f597c7

1 Like

I have been reading the xano documentation and I have managed to register users and log in, when starting it returns the user’s token to be able to obtain the data from it, but I can’t get it, I guess I’m making the call wrong, could you help me?


1 Like

I need more information to be able to give any kind of advice.

Can you share your project here or send me the link as a PM?

2 Likes

I am sending you the link of the project that I am using to experiment, sorry for my ignorance I am a newbie.Thunkable

1 Like

I just used your blocks to sign up and it was successful and I get this Token
image

However, your code for Login will fail because you are not using the correct Token property name.


Your code above has three problems.

  1. You are not using the response block to get the result of your API call.
  2. The response is in a form of JSON and you need to convert it to object.
  3. The authentication token property name is authToken but you are referring to is as Auth Token which will make it fail.
2 Likes

I have corrected what you have told me but it is still not solved, I understand that status 200 is successful, but I cannot obtain the user data, in theory I should make a GET request with the Token to obtain user data and that is where it is the mistake.

1 Like

Will look at it later and send you a working project. I’m responding now from my mobile so can’t do any changes in the project.

1 Like

Okey. Thanks!

1 Like

See my login attempt

See the modified project
https://x.thunkable.com/projectPage/61c1ab11d863500011303cb1

3 Likes

Spot on, as always, Muneer!

Here is a shot of the blocks! Be sure to ask questions! :blush: using access tokens and refresh tokens can be confusing at first

4 Likes

Thank you very much, the truth is that words of gratitude are not enough, it has been the solution! forever
helping the community, Thunk!

2 Likes

You are welcome @franfranfran .

Thanks @jared for your nice words and the explanation.

3 Likes

Hello, I wanted to know if you could help me again, my native language is Spanish, and sometimes interpreting the documentation is difficult for me, besides that I am learning, I am experimenting with xano, to use it for a project, I am not managing to obtain the data through of the id, I attach screenshots and project link. I hope you can help me, I would be very grateful again.





https://x.thunkable.com/copy/9b936d83602012d6e8319bd3d595a98e

1 Like

Hello again my friend.

The user_id for Xano is a number not a name. When you login you will get the user_id.

In my example above, my login information shows that my user_id is 3
image

So you need a variable to save this ID to use it later.

Hope this makes it clear.

1 Like

I have tried using numbers from the blocks before, and it kept throwing the same error, that’s why I shared the captures, because the error seems to come from the blocks, try again just in case and I’ll tell you what happened.

2 Likes

See this
image

The URL of the API should be:

https://x8ki-letl-twmt.n7.xano.io/api:OEogPuHo/user/

I just checked the API again and the following is the best way to use it.

This API does not use QueryParameters but adds the user_id to the URL directly

Hello again, that url belongs to the endpoint to obtain all users, as there was only 1 user created (user1) it is because you got that answer, if you see now that it creates a second user, you get both, so that is not the solution…

1 Like

I’m sure my explanation is correct and provides the solution you are looking for.

See your modified project
https://x.thunkable.com/projectPage/61c46bbc7b7b9d0010f6adb2

2 Likes

Sorry, you’re right, thank you very much !!!
Merry Christmas!!!

1 Like