I'm writing a plugin that creates an entry via an API.

I'm trying to figure out how to create an asset (an image) via its external URL.

Couldn't find anything in the docs, could someone help me out?