Coder Social home page Coder Social logo

Comments (3)

Garethp avatar Garethp commented on August 10, 2024

One issue is now solved: Headers in NTLMSoapClient are now smarter and no longer refer to hardcoded index's

from php-ews.

Garethp avatar Garethp commented on August 10, 2024

This doesn't appear to be something easily done at all. Unfortunately looking at the Microsoft Documentation for GetUserAvailability, there's so many options when making the request that I can't see an obvious solution to simplifying the process. I attempted to do this by allowing you to pass in variables to the GetUserAvailabilityRequestType constructor, but trying to take everything in to account turned in to basically the same level of complication any way, and I discovered that I could just use buildFromArray to do what I was already trying to do, as shown below

$request = \jamesiarmes\PEWS\API\Message\GetUserAvailabilityRequest::buildFromArray(array(
    "MailboxDataArray" => array(
        "MailboxData" => array(
            "Email"=> array(
                "Address" => 'addressHere'
            ),
            "AttendeeType" => 'Required',
            "ExcludeConflicts" => false
        )
    ),
    "FreeBusyViewOptions" => array(
        "TimeWindow" => array(
            "StartTime" => (new DateTime('2016-02-24 11:00:00'))->format('c'),
            "EndTime" => (new DateTime('2016-02-24 15:00:00'))->format('c')
        ),
        "MergedFreBusyIntervalInMinutes" => 30,
        "RequestedView" => 'DetailedMerged'
    )
);
$response = $api->getClient()->GetUserAvailability($request);

So as it stands until I can think of a good, easy API call that's flexible enough to suit most purposes, this won't be simplified any time soon.

from php-ews.

synlol avatar synlol commented on August 10, 2024

hello, Garethp
Why did I do as you wrote above? The request was invalid

from php-ews.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.