Home » getVastEvents

getVastEvents

Description

Gets list of vast events

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 GetVastEventsTest {

 public static void main(String[] args) {
 GetVastEventsTest.getVastEvents();
 }

 private static void getVastEvents() {
 
 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);
 VastEvent[] getvastEvents = stub.getVastEvents().get_return();

 for(VastEvent vast : getvastEvents) {
 System.out.println( "vast Id:"+ vast.getId()+" Name:" +vast.getName()+" status:"+vast.getStatus());
 }
 
 System.out.println("GetVastEvents COMPLETE!");


 } catch (Exception e) {
 System.err.println("ERROR: Activities 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->getVastEvents();
 }catch (SoapFault $ex) {
 var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
 echo "GetVastEvents FAILED\n";
 die();
 }
 
 /**
 * Response
 */
 $tmp = new getVastEventsResponse($response);
 $getVastEvents = $tmp->return;
 
 print_r($getVastEvents);


SOAP

Request

 POST /axis2/services/ZEDOAPI?wsdl HTTP/1.1
Host: dev08.juhu.zedo.com:2000
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.5.9-1ubuntu4.11
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:getVastEvents"
Content-Length: 360

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.zedo.com">
<SOAP-ENV:Header>
<ns1:user>example@example.com</ns1:user>
<ns1:password>password</ns1:password>
<ns1:network>525</ns1:network>
<ns1:callinfo>zapiCall</ns1:callinfo>
</SOAP-ENV:Header>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>

Response

 HTTP/1.1 200 OK
Date: Wed, 03 Feb 2016 04:35:08 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: text/xml; charset=utf-8
Connection: Keep-Alive


<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getVastEventsResponse 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.VastEvent">
<ax24:id>1</ax24:id>
<ax24:name>PASSBACK</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>569</ax24:id>
<ax24:name>creativeView</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>587</ax24:id>
<ax24:name>start</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>592</ax24:id>
<ax24:name>midpoint</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>594</ax24:id>
<ax24:name>firstQuartile</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>586</ax24:id>
<ax24:name>thirdQuartile</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>566</ax24:id>
<ax24:name>complete</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>591</ax24:id>
<ax24:name>mute</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>588</ax24:id>
<ax24:name>unmute</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>579</ax24:id>
<ax24:name>pause</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>581</ax24:id>
<ax24:name>rewind</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>589</ax24:id>
<ax24:name>resume</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>583</ax24:id>
<ax24:name>fullscreen</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>577</ax24:id>
<ax24:name>expand</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>590</ax24:id>
<ax24:name>collapse</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>572</ax24:id>
<ax24:name>acceptInvitation</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>568</ax24:id>
<ax24:name>close</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1162</ax24:id>
<ax24:name>viewed10s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1192</ax24:id>
<ax24:name>viewed15s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1222</ax24:id>
<ax24:name>viewed20s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1252</ax24:id>
<ax24:name>viewed25s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1282</ax24:id>
<ax24:name>viewed30s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1312</ax24:id>
<ax24:name>viewed35s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1342</ax24:id>
<ax24:name>viewed40s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1372</ax24:id>
<ax24:name>viewed45s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1402</ax24:id>
<ax24:name>viewed60s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1477</ax24:id>
<ax24:name>Errors</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1432</ax24:id>
<ax24:name>skip</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
<ns:return type="com.zedo.api.client.VastEvent">
<ax24:id>1950</ax24:id>
<ax24:name>viewed5s</ax24:name>
<ax24:status>A</ax24:status>
</ns:return>
</ns:getVastEventsResponse>
</soapenv:Body>
</soapenv:Envelope>