Library

The Library is an area where a User can upload content (images, etc) to allow it to be used when creating a Project.

There are 2 ways of providing an image to the library, as well as multi image at once variations:

MethodExplanation
PushThe image is directly uploaded from the application to the MILK API via an HTTP POST. For example, useful if the application is a native application and has the image locally.
PullA URL is sent to the MILK API. The image is downloaded from the URL by MILK and put into the library that way. For example, useful if the image is already hosted by a web application.
Multi PushMultiple images are directly uploaded in one request from the application to the MILK API via an HTTP POST.
Multi PullA list of URLs is sent to the MILK API. The images are downloaded from the URLs by MILK and put in to the library.

All methods of placing images into the library include a shortcut, which allow an anonymous user to be created automatically.

Authentication MethodResult
Internal TokenLibrary item is created for the corresponding User.
External User TokenLibrary item is created for the corresponding external user.
API KeyAn Anonymous User is created and the library item is associated with it.
External Application TokenAn Anonymous User  is created and the library item is associated with it.