package com.transloadit.sdk;

import com.mashape.unirest.http.exceptions.UnirestException;

import java.util.HashMap;

public class Main {

    public static void main(String[] args) {
        Transloadit transloadit = new Transloadit("KEY", "SECRET");
        Assembly ass = transloadit.assembly();

        try {
            System.out.println(ass.list(new HashMap()).getBody());
        } catch (UnirestException e) {
            e.printStackTrace();
        }
    }
}

@@ -84,16 +84,141 @@
 eption;%0A
+import com.transloadit.sdk.response.AssemblyResponse;%0Aimport com.transloadit.sdk.response.ListResponse;%0A%0Aimport java.io.File;
 %0Aimport 
@@ -235,16 +235,38 @@
 HashMap;
+%0Aimport java.util.Map;
 %0A%0Apublic
@@ -390,16 +390,22 @@
 %22SECRET%22
+, 3600
 );%0A     
@@ -419,16 +419,24 @@
 mbly ass
+emblyApi
  = trans
@@ -485,62 +485,704 @@
     
-System.out.println(ass.list(new HashMap()).getBody());
+File%5B%5D files = new File%5B1%5D;%0A            files%5B0%5D = new File(%22LICENSE%22);%0A%0A            Map options = new HashMap();%0A            Steps steps = new Steps();%0A            steps.addStep(%22encode%22, %22/video/encode%22, new HashMap());%0A            options.put(%22steps%22, steps.asHash());%0A%0A            AssemblyResponse assembly = assemblyApi.create(options, files);%0A%0A            System.out.println(assembly.id);%0A            System.out.println(assembly.url);%0A            System.out.println(assembly.json());%0A%0A            ListResponse list = assemblyApi.list(new HashMap());%0A%0A            System.out.println(list.json());%0A            System.out.println(list.items.get(0));%0A            System.out.println(list.size);%0A
 %0A   

add working examples