API : Upload function

Greetings

It would help our workflow massively if there was a method to upload a file to a group directly (via the API). Has anyone, by any chance, written such a function? I would supply name of file and group id. Would rather not start from scratch if someone has done this before? 

With grateful thanks, Jamie

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking