hiku, sample code, API

hiku, sample code, API

If you’ve haven’t, you can read my first article in the series on the hiku, online groceries, barcodes and hiku.

The hiku, a small wifi enabled barcode reader or as they call it themselves, the shopping button. From a materials perspective, it’s beautiful. The hard plastic outside is smooth and shiny and the aluminum button is beautiful but good design does not end there. The hiku can be put on your fridge with it’s magnetic back (assuming that magnets stick to your fridge of course) but they made sure that there is a rubber back so the hiku does not scratch your fridge. The bottom, depending on how you look at it, contains the scan window. The interior is protected by a glas window which itself is protected by a rubber edge so you can put the hiku on the table without scratching it or the table. All in all a beautiful design.

So what will it do for you? Well, if you live in the US you can use it to shop at Wallmart or Peabod. I know there are other companies also in other countries testing this device but even if your grocery store of choice is not among them, it is a great device for barcode reading and it’s API is open so you can integrate with them. I have been working on getting a demo ready for my grocery store of choice and will document what I have done in the next articles. In this article, let me share what they have online.

They have an API description and some sample code online on github:


which amongst others contains their documentation of their API (version 1.5.6 at the time of writing) in the API directory.

They have also shared a sample app on github:


which also contains Getting started with hiku document. Even though I do have quite some programming experience, it does not include python and I was a bit lost when I read all this. After lots of reading and trying to understand what the Python code did, I managed to get the hiku working using php and in the next articles I will discuss in detail how to do it and include the code I have created.

High level the hiku solution contains two things, an API which you have to implement through a webhook which will send you the different events and an API which you can use to update the shopping cart in the app. Events, which you need to receive and process, are generated by the hiku (obviously) but also by the shopping cart app. Items in the shopping cart can be created within the app or by using their API.

Ready and exited to get your hiku going? Read on! You may skip the article on barcodes but it does give you a little background on barcodes in general and more specifically what you can do to create new ones. It’s not a long read 🙂

The previous article in the hiku serie:

4 thoughts on “hiku, sample code, API

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s