Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add an example of Multi Pull

...

{"LibraryItems":[{"ItemGuid":"c087c127882249f09658414d9a3e2b4c","FileMimeType":"image/jpeg","FileSize":331295,"FileMd5":"9872F113F67ECE0EFE6C52E23667C9F6"},{"ItemGuid":"56a51dfa56f0484abc645c7d2e70ac5d","FileMimeType":"image/jpeg","FileSize":621594,"FileMd5":"6DE7B5D17C7B3B54425273ACA8536536"}],"ProductBuilderUrl":"https://checkout.staging.milkbooks.com/builder/start/431121ac-7812-4dc5-8ce6-f5ac287107da"}

Uploading an image to the Library (using Multi Pull, creating an Anonymous User)

Request:

POST https://api.staging.milkbooks.com/library/multi/pull HTTP/1.1
Content-Type: application/json
Accept: application/json
X-MILK-API-Key: 12345678-1234-1234-1234-123456789012
Host: api.staging.milkbooks.com
Content-Length: 166
{"Urls":["http://r0k.us/graphics/kodak/kodak/kodim05.png","http://res1.windows.microsoft.com/resbox/en/windows%207/main/76e5d259-30f3-42cd-8e62-6b81c8f11e5e_12.jpg"]}

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-Powered-By: ServiceStack/3.956 Win32NT/.NET
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 17 Jun 2014 02:49:21 GMT
Content-Length: 426
{"LibraryItems":[{"ItemGuid":"6d4f678982c64c6cac953d5fcb5b5110","FileMimeType":"image/jpeg","FileSize":595284,"FileMd5":"AEA9579244EA19614AF4969BDC64BC8A"},{"ItemGuid":"f447cdc19294496faf257eb0f55a2f29","FileMimeType":"image/jpeg","FileSize":561276,"FileMd5":"E7843CB1CA9EFC98E9B6F43AE2A80028"}],"ProductBuilderUrl":"https://checkout.staging.milkbooks.com/builder/start/216c1b8d-a3b9-47d0-8ee8-d755f29ef093"}