You'll have to make an authenticated call using OAuth. This means passing an appropriate Authorization header. There are a lot of guides that can walk you through this process and there are helper libraries available for pretty much every modern language and request library. Note that we use OAuth 1.0a, which is very different than OAuth 2.0, so make sure you are working with the correct version.
PhotoTeleport: open source, multi platform photo uploader.