Uploading to Google Cloud Storage from iOS app

Hello, I stumbled over your post about sending images from app to google cloud storage. This is what I am looking to do in my app, however it is written in lua (I am currently using codea from twolivesleft to write my apps). Would you be able to explain in more detail the code in the IOS client side, so that I may be able to adopt it in lua?