-
This repo contains the App Inventor source of this project (.aia file), simply download or clone this repo:
$ git clone https://github.com/LintangWisesa/Android-App-Inventor_Favoriot-API.git
-
With your Google account, login to MIT App Inventor. Under Projects menu, choose Import project (.aia) from my computer then upload the .aia file from this repo.
-
On its Designer section, I use several components such as:
- Label (User Interface)
- Textbox (User Interface)
- Button (User Interface)
- Notifier (User Interface)
- Web (Connectivity)
-
Here is the block code for GET & POST button on Blocks section:
- GET button block code:
Notes:
-
Insert your Favoriot's device developer ID & account name to the URL: https://api.favoriot.com/v1/streams?device_developer_id=yourDevice@yourAccount&max=1&order=DESC.
-
Insert your Favoriot's API Key into the request header.
- POST button block code:
Notes:
-
Set the URL to: https://api.favoriot.com/v1/streams.
-
Insert your Favoriot's API Key into the request header.
- Build the .apk file. From Build menu, choose one: App (provide QR code for .apk) or App (save .apk to my computer). Download & install it on your Android phone. Enjoy the app! 😎👌
Lintang Wisesa 💌 lintangwisesa@ymail.com
Facebook | Twitter | Google+ | Youtube | :octocat: GitHub | Hackster