Home » getActivitiesLookups

getActivitiesLookups

Description

Gets list of activity lookups

Attributes

Function doesn’t accept attributes

 

 Samples

Java

import com.zedo.zapi.*;
import com.zedo.zapi.ZEDOAPIStub.*;
import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;

public class GetActivitiesLookupsTest {

    public static void main(String[] args) {
        GetActivitiesLookupsTest.getActivitiesLookups();
    }

    private static void getActivitiesLookups() {
       
        try {
         
            ZEDOAPIStub stub = new ZEDOAPIStub("http://api.zedo.com/v8/?wsdl&java");

                stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "user", "zedoapi"),     "example@example.com");
                stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "password", "zedoapi"),     "password");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "network", "zedoapi"),  "525");
            stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10 * 60 * 1000);
           
            Thread.sleep(5000);
            Activities[] activities = stub.getActivitiesLookups().get_return();
     
            System.out.println("getActivitiesLookups_ALL COMPLETE!");
            for (Activities act:  Activities) {
                System.out.println(act.getId() + " " + act.getName());
            }

        } catch (Exception e) {
            System.err.println("ERROR: getActivitiesLookups FAILED!");
            System.err.println("Exception: " + e.getMessage());
            if (e instanceof AxisFault) {
                AxisFault af = (AxisFault) e;
                System.err.println("AxisFault's detail: " + af.getDetail());
                af.printStackTrace();
            } else {
                e.printStackTrace();
            }
        }
    }}

PHP

include_once './zlib/ZEDOAPI.php';
        
        /**
         *Create Client Stub
         */
        $config = Array();
        $config['location'] = 'http://api.zedo.com/v8/?wsdl&php';       //URL of the SOAP server to send the request to
        $config['exceptions'] = true;                                                                                                   //Enable Exception Handling
        
        $stub = new ZEDOAPI($config);
        
        $header = Array();
        $header[0] = new SoapHeader('http://api.zedo.com','user', 'example@example.com');
        $header[1] = new SoapHeader('http://api.zedo.com','password', 'password');
        $header[2] = new SoapHeader('http://api.zedo.com','network','525');
        $header[3] = new SoapHeader('http://api.zedo.com','callinfo','zapiCall');
        
        $stub->__setSoapHeaders($header);
        
        /**
         *Define Call Parameters 
         */
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->getActivitiesLookups();
        }catch (SoapFault $ex) {
           var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
                echo "GET ACTIVITIESLOOKUP FAILED\n";
            die();
        }
        
        /**
         * Response
         */
        $tmp = new getActivitiesLookupsResponse($response);
        $getActivitiesLookups = $tmp->return;
        
        print_r($getActivitiesLookups);

SOAP

Request

POST /axis2/services/ZEDOAPI?wsdl HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getActivitiesLookups"
User-Agent: Axis2
Host: dev08.juhu.zedo.com:2000
Transfer-Encoding: chunked
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header>
<zedoapi:user xmlns:zedoapi="http://api.zedo.com">example@example.com</zedoapi:user>
<zedoapi:password xmlns:zedoapi="http://api.zedo.com">password</zedoapi:password>
<zedoapi:network xmlns:zedoapi="http://api.zedo.com">525</zedoapi:network>
</soapenv:Header>
<soapenv:Body />
</soapenv:Envelope>

Response

HTTP/1.1 200 OK
Date: Thu, 21 Jan 2016 04:42:00 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getActivitiesLookupsResponse"
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:getActivitiesLookupsResponse xmlns:ns="http://zapi.zedo.com" xmlns:ax21="http://base.zedo.com/xsd" xmlns:ax22="http://util.zedo.com/xsd" xmlns:ax25="http://soap.reportengine.zedo.com/xsd" xmlns:ax24="http://client.api.zedo.com/xsd">
<ns:return type="com.zedo.api.client.Activities">
<ax24:code>-29</ax24:code>
<ax24:createdById>24592</ax24:createdById>
<ax24:createdDate>2009-10-23 00:00:00</ax24:createdDate>
<ax24:id>7765</ax24:id>
<ax24:modifiedById>54</ax24:modifiedById>
<ax24:modifiedDate>2015-03-23 15:24:58.433</ax24:modifiedDate>
<ax24:name>eXelate - Health - Diet &amp; Fitness</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.Activities">
<ax24:code>456</ax24:code>
<ax24:createdById>24592</ax24:createdById>
<ax24:createdDate>2014-04-29 21:51:39.279847</ax24:createdDate>
<ax24:id>19022</ax24:id>
<ax24:modifiedById>24592</ax24:modifiedById>
<ax24:modifiedDate>2014-04-29 21:51:39.279847</ax24:modifiedDate>
<ax24:name>eXelate - Auto - Buyers ~ Make:Ferrari</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.Activities">
<ax24:code>71</ax24:code>
<ax24:createdById>27670</ax24:createdById>
<ax24:createdDate>2009-03-23 00:00:00</ax24:createdDate>
<ax24:id>4822</ax24:id>
<ax24:modifiedById>27670</ax24:modifiedById>
<ax24:modifiedDate>2009-03-23 00:00:00</ax24:modifiedDate>
<ax24:name>act1</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.Activities">
<ax24:code>112</ax24:code>
<ax24:createdById>35117</ax24:createdById>
<ax24:createdDate>2010-03-13 00:00:00</ax24:createdDate>
<ax24:id>9775</ax24:id>
<ax24:modifiedById>35117</ax24:modifiedById>
<ax24:modifiedDate>2010-03-13 00:00:00</ax24:modifiedDate>
<ax24:name>POST R4</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.Activities">
<ax24:code>-95</ax24:code>
<ax24:createdById>24592</ax24:createdById>
<ax24:createdDate>2009-11-26 00:00:00</ax24:createdDate>
<ax24:id>8567</ax24:id>
<ax24:modifiedById>54</ax24:modifiedById>
<ax24:modifiedDate>2015-03-23 15:24:58.183</ax24:modifiedDate>
<ax24:name>eXelate . Auto Buyers - Make-Mini</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.Activities">
<ax24:code>352</ax24:code>
<ax24:createdById>11062</ax24:createdById>
<ax24:createdDate>2012-08-14 00:47:40.626</ax24:createdDate>
<ax24:id>15488</ax24:id>
<ax24:modifiedById>29978</ax24:modifiedById>
<ax24:modifiedDate>2013-01-10 11:59:30.316</ax24:modifiedDate>
<ax24:name>create_upd_activity_306</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
</ns:getActivitiesLookupsResponse>
</soapenv:Body>
</soapenv:Envelope>