Package com.cloudbees.api

Examples of com.cloudbees.api.BeesClient.executeRequest()


    public JSONObject getMetaData(String appId) throws Exception {
        BeesClient client = beesClientFactory.get(BeesClient.class);
        Map<String, String> params = new HashMap<String, String>();
        params.put("app_id", appId);
        String url = client.getRequestURL("application.platform.metadata", params);
        String response = client.executeRequest(url);

        SAXBuilder sxb = new SAXBuilder();
        Document document = sxb.build(new StringReader(response));
        String js = document.getRootElement().getChild("message").getText();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.