# How to link Ximiliar app to Thukable

**URL:** https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704
**Category:** Questions about Thunkable X
**Created:** [March 31, 2022, 2:45am UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704 "2022-03-31T02:45:58Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 1, 2022, 6:44am UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/21 "2022-04-01T06:44:04Z")

</div>

When testing and trying to change things or alter settings the **blocks** way becomes easier than the **string** way which you could easily change the wrong part or by mistake remove one of the brackets.

The blocks start with `generate JSON from object` which effectively converts it to string.

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [April 1, 2022, 6:44am UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/22 "2022-04-01T06:44:37Z")

</div>

how true!

---

<div class="post-metadata">

### Author: ![gsturm3605jl](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@gsturm3605jl](https://community.thunkable.com/u/gsturm3605jl)
#### Post date: [April 2, 2022, 4:53pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/23 "2022-04-02T16:53:07Z")

</div>

[![](https://img.youtube.com/vi/aDHg72IEO4o/hqdefault.jpg "Make your own AI-based Image Recognition App!") ](https://www.youtube.com/watch?v=aDHg72IEO4o)

so I found an exact match of what I want to do but I still get an error when I upload a picture

 ![Screen Shot 2022-04-02 at 12.52.30 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/9/f9156286e60f4cd49f40c5df74b93719c9fd2b4a.jpeg)  
not sure if this person coded everything correctly or if I made a mistake somewhere?

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [April 2, 2022, 5:01pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/24 "2022-04-02T17:01:35Z")

</div>

What error do you get?

---

<div class="post-metadata">

### Author: ![gsturm3605jl](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@gsturm3605jl](https://community.thunkable.com/u/gsturm3605jl)
#### Post date: [April 2, 2022, 5:05pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/25 "2022-04-02T17:05:03Z")

</div>

![IMG_8404](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/057fb064bdf3684bb9d75b01c49d0cb81af8414a.jpeg)

When I live test on y phone I get this error

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 2, 2022, 5:21pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/26 "2022-04-02T17:21:11Z")

</div>

> [@gsturm3605jl](#):
>
> on y phone I get this error

First of all this error means you have a logic problem and the app crashes.

Secondly, the block  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f02e22ab9a1bc77929374d1f5993319161494ba7.png)  
should not work as it will not produce the required format for the API call.

---

<div class="post-metadata">

### Author: ![gsturm3605jl](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@gsturm3605jl](https://community.thunkable.com/u/gsturm3605jl)
#### Post date: [April 2, 2022, 5:26pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/27 "2022-04-02T17:26:09Z")

</div>

so the generate from json is incorrect or the block underneath(not sure what that block even is)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 2, 2022, 5:30pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/28 "2022-04-02T17:30:56Z")

</div>

The documentation states that you either provide a URL of the image stored in a server or the Base64 encoded string of the image. Your blocks provides neither of those.

Here is a quick demo of how you can obtain the Base64 encoded string of an image.  
[https://x.thunkable.com/projectPage/61f68431c3761001dba12df1](https://x.thunkable.com/projectPage/61f68431c3761001dba12df1)

---

<div class="post-metadata">

### Author: ![gsturm3605jl](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@gsturm3605jl](https://community.thunkable.com/u/gsturm3605jl)
#### Post date: [April 2, 2022, 6:03pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/29 "2022-04-02T18:03:54Z")

</div>

hmm so my images are stored in a task

 ![Screen Shot 2022-04-02 at 2.02.16 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/4/a4ac250e865bf74b52770aa7a1a4fb4047f1b536.jpeg)

and within that task they are separated into categories

 ![Screen Shot 2022-04-02 at 2.02.24 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/b/2b728958bdf9417cae280278cb28df24770204bf.jpeg)

simply coping and pasting the url does not work

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 2, 2022, 6:11pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/30 "2022-04-02T18:11:14Z")

</div>

> [@gsturm3605jl](#):
>
> simply coping and pasting the url does not work

A simple way to test if the URL that you are copying is the intended is to open a new tab in your browser and try to view the image by pasting the URL into your browser. You need to see that this URL can actually show the image.

---

<div class="post-metadata">

### Author: ![gsturm3605jl](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@gsturm3605jl](https://community.thunkable.com/u/gsturm3605jl)
#### Post date: [April 2, 2022, 6:20pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/31 "2022-04-02T18:20:21Z")

</div>

when I try this it comes up as the url not existing. I tried doing what Tataing did in his video around 2:30 mark, but I think because the Ximilar app makes a person log in I need a different step?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 2, 2022, 6:22pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/32 "2022-04-02T18:22:33Z")

</div>

Let’s use a URL that we know it works.  
Try this `http://i.imgur.com/fwxooMv.png` and use it to test your blocks in your app.

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [April 2, 2022, 6:38pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/33 "2022-04-02T18:38:50Z")

</div>

your screenshots imply that there are 2 services available: ready made recognition and customer recognition - which one are you trying to do? if it’s ready made, the categorization has been done for you (ie. it’s been trained), if custom, you have to categorize the photos yourself in a stand alone training run- have you done it?. it also looks like you are given a task number that you provide when you do your call. do you already have such a number?  
the thunkable chunk you posted seems to be for request for reognition/classification,. i’m also unsure if it works now because the ximilar docs seem to require photos to be in base64 form but your thunkable example seems to show passing the file name returned from the media\_upload directly to the web\_api call without any base64 conversion. you should check again with ximilar if they still allow photos.

---

<div class="post-metadata">

### Author: ![gsturm3605jl](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@gsturm3605jl](https://community.thunkable.com/u/gsturm3605jl)
#### Post date: [April 2, 2022, 6:46pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/34 "2022-04-02T18:46:41Z")

</div>

Im trying to do the custom recognition that I made.  
the video that I linked "image classification shows exactly what I want to do and when I input everything that he did mine does not work where his does.

Im pretty much doing essentially the same thing he is doing but I have my own custom categories

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [April 2, 2022, 6:49pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/36 "2022-04-02T18:49:12Z")

</div>

what are you trying to formulate? the block for the webapi call? tell us what you want to create (block out the apikey)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 2, 2022, 7:12pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/38 "2022-04-02T19:12:52Z")

</div>

> [@gsturm3605jl](#):
>
> I don’t know to put this in the blocks section

> [@muneer](#):
>
> Secondly, the block  
> ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f02e22ab9a1bc77929374d1f5993319161494ba7.png)  
> should not work as it will not produce the required format for the API call.

Instead of the `generate JSON from object.....` enter the URL I gave you. This should give you a good start.

I just noticed that you have a wrong Body structure  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/6/96809001ddf6eac961526129fba49d9a4ac70ead.png)

You are using the example URL from the documentation. Instead of the example URL use the one I gave you and then no need to add `generate JSON from object....`

One last thing:  
Have you setup the **Media DB** correctly?

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [April 2, 2022, 7:17pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/39 "2022-04-02T19:17:53Z")

</div>

here’s the curl statement for a classify run for one photo:  
curl -H “Content-Type: application/json” -H “authorization: Token **API\_TOKEN** ”  
[https://api.ximilar.com/detection/v2/detect](https://api.ximilar.com/detection/v2/detect) -d  
‘{“task\_id”: “0a8c8186-aee8-47c8-9eaf-348103xa214d”, “records”: [{"\_url": “[https://bit.ly/2IymQJv](https://bit.ly/2IymQJv)” } ] }’

here’s what i think the web api blocks should look like (NOTE: FOR TWO PHOTOS)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/6/3629f2a7ddab2b3645b7130f37180b5b8a4b7358.png)

i believe the contents of **\_url** should be the actual url you type in browser to see the image (in this example, you see shortened bit.ly\* type of urls)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 2, 2022, 7:19pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/40 "2022-04-02T19:19:35Z")

</div>

@manyone  
You need to remove the `text block` **world** from the URL part.

> [@manyone](#):
>
> {“\_url”: “[https://bit.ly/2IymQJv”](https://bit.ly/2IymQJv%E2%80%9D) }

@gsturm3605jl  
Use the URL I gave you instead of this `bit.ly`

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [April 2, 2022, 7:21pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/41 "2022-04-02T19:21:31Z")

</div>

oops - hello world,goodbye world!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/065d4ca26105b79a0bf0711606bcbdd257b04ab8.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 2, 2022, 7:23pm UTC](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704/42 "2022-04-02T19:23:36Z")

</div>

@manyone  
You need to add the `task ID` for the task set that was classified. You need to add it to the `Body section`.

[Previous page](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704.md?page=1)

[Next page](https://community.thunkable.com/t/how-to-link-ximiliar-app-to-thukable/1810704.md?page=3)
