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?
I previously made a Xano demo using API connection. See this
https://x.thunkable.com/projectPage/617031d98d7dfb0010f597c7
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?
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?
I am sending you the link of the project that I am using to experiment, sorry for my ignorance I am a newbie.Thunkable
I just used your blocks to sign up
and it was successful and I get this Token
However, your code for Login
will fail because you are not using the correct Token
property name.
Your code above has three problems.
- You are not using the
response
block to get the result of your API call. - The response is in a form of JSON and you need to convert it to object.
- The authentication token property name is
authToken
but you are referring to is asAuth Token
which will make it fail.
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.
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.
Okey. Thanks!
See my login attempt
See the modified project
https://x.thunkable.com/projectPage/61c1ab11d863500011303cb1
Spot on, as always, Muneer!
Here is a shot of the blocks! Be sure to ask questions! using access tokens and refresh tokens can be confusing at first
Thank you very much, the truth is that words of gratitude are not enough, it has been the solution! forever
helping the community, Thunk!
You are welcome @franfranfran .
Thanks @jared for your nice words and the explanation.
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
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
So you need a variable to save this ID to use it later.
Hope this makes it clear.
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.
See this
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…
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
Sorry, you’re right, thank you very much !!!
Merry Christmas!!!