Uploading to Mediafire

Ok, I can’t quite understand what I would need to do with their API. I would like to have my program upload files to mediafire, get the URL returned and copy it to the clipboard.