Arduino Yun connecting to google FireBase

Hello,

Im new to Arduino and im working on my first project using Arduino Yun. Im trying to send sensor data to a database and have an Android app retrieve that data to display to user as a notification. Can someone refer to me on how to connect my Arduino Yun to Google firebase? I already have the board connected to the internet and have created my database on Firebase, just looking for the code to connect

curl -k  -X PATCH  -d @/mnt/sda1/test.base64 'https://shms.firebaseio.com/images/image.json' > /dev/null 2>&1

http://ibuyopenwrt.com/index.php/2-uncategorised/216-curl-7-29-0-mips-openwrt-linux-gnu-has-limit-at-string-size

Upload Image to Firebase (base64)