@@ -0,0 +1,2102 @@
+/*%0A * Copyright 2013 OrgSync%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.orgsync.api.examples;%0A%0Aimport java.util.List;%0Aimport java.util.concurrent.ExecutionException;%0A%0Aimport com.ning.http.client.AsyncHttpClient;%0Aimport com.ning.http.client.AsyncHttpClientConfig;%0Aimport com.ning.http.client.ProxyServer;%0Aimport com.orgsync.api.AccountsResource;%0Aimport com.orgsync.api.ApiClient;%0Aimport com.orgsync.api.ApiResponse;%0Aimport com.orgsync.api.OrgSync;%0Aimport com.orgsync.api.Resources;%0Aimport com.orgsync.api.model.accounts.Account;%0A%0A/**%0A * An example that uses a proxy (localhost:8888) for communicating with the OrgSync API.%0A * %0A * @author steffyj%0A * %0A */%0Apublic class UseProxy %7B%0A%0A    public static void main(final String%5B%5D args) throws InterruptedException, ExecutionException %7B%0A        String apiKey = %22dd6b9d2beb614611c5eb9f56c34b743d1d86f385%22;%0A        ApiClient apiClient = OrgSync.newApiClient(apiKey);%0A%0A        ProxyServer proxy = new ProxyServer(%22localhost%22, 8888);%0A        AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder().%0A                setProxyServer(proxy).%0A                build();%0A        AsyncHttpClient httpClient = new AsyncHttpClient(config);%0A%0A        apiClient.setHttpClient(httpClient);%0A%0A        try %7B%0A            AccountsResource accountsResource = apiClient.getResource(Resources.ACCOUNTS);%0A            ApiResponse%3CList%3CAccount%3E%3E apiResponse = accountsResource.getAccounts().get();%0A%0A            System.out.println(%22Call successful? %22 + apiResponse.isSuccess());%0A        %7D finally %7B%0A            apiClient.destroy();%0A        %7D%0A    %7D%0A%0A%7D%0A

Add a simple example that has uses a proxy.