DigiOffice Gateway Web Services

<back to all web services

GetOutlookContactItems

Get all Outlook contacts based on CustomerQuery ID

Requires Authentication
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


/** @description Get all Outlook contacts based on CustomerQuery ID */
class GetOutlookContactItems implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $QueryID=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['QueryID'])) $this->QueryID = $o['QueryID'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->QueryID)) $o['QueryID'] = $this->QueryID;
        return empty($o) ? new class(){} : $o;
    }
}

PHP GetOutlookContactItems DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/GetOutlookContactItems HTTP/1.1 
Host: dogw.klokgroep.nl 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"QueryID":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[{"GlobalID":"00000000-0000-0000-0000-000000000000","Inactief":false,"Title":"String","FirstName":"String","MiddleName":"String","LastName":"String","FullName":"String","Suffix":"String","Birthday":"0001-01-01T00:00:00.0000000","Gender":"String","Categories":"String","CompanyName":"String","BusinessAddressStreet":"String","BusinessAddressPostalCode":"String","BusinessAddressCity":"String","BusinessAddressCountry":"String","OtherAddressStreet":"String","OtherAddressPostalCode":"String","OtherAddressCity":"String","OtherAddressCountry":"String","Home2TelephoneNumber":"String","HomeAddressStreet":"String","HomeAddressPostalCode":"String","HomeAddressCity":"String","HomeAddressCountry":"String","BusinessTelephoneNumber":"String","Business2TelephoneNumber":"String","MobileTelephoneNumber":"String","HomeTelephoneNumber":"String","Department":"String","JobTitle":"String","Profession":"String","Email1Address":"String","Email1DisplayName":"String","Email2Address":"String","Email2DisplayName":"String","Email3Address":"String","Email3DisplayName":"String","BusinessHomePage":"String","FileAs":"String","Spouse":"String","User1":"String","User2":"String","User3":"String","User4":"String","ImageID":"String","ImageLastUpdate":"0001-01-01T00:00:00.0000000","BusinessFaxNumber":"String","OtherFaxNumber":"String","HomeFaxNumber":"String"}]