nmarus / node-ews

A simple JSON wrapper for the Exchange Web Services (EWS) SOAP API.
MIT License
116 stars 52 forks source link

Need advice for setup #35

Closed Smus closed 7 years ago

Smus commented 7 years ago

Hi, Im trying to make a webservice for the office, where you can ask if any of the 8 meetings are available "now". Im thinking I need to use the GetRoom or Roomlist, and the get appointment or Calender... Im not sure what they call the things i need to make this setup. I know the email address' for all of the meetingrooms. Any pointers for what to do? I can easily check my own calender, its just the Room calender i cant find.

Smus commented 7 years ago

Its this I want to do, but just with node-ews and not C# http://blog.darrenparkinson.uk/2013/12/using-ews-managed-api-to-access-meeting_13.html

Smus commented 7 years ago

No one got any ideas? Im pretty stuck :-(

juan-ruiz commented 7 years ago

try to find an example xml for the call you need, first identify the name of the call to be used in c# like getRoom, then try to get an example xml for that one, now then we can help you out

Smus commented 7 years ago

One of my main issues is that I dont know if a meetingroom is seen as a "user" so I can use, GetUserAvailabilityRequest, or what the methode is called i need to use.

My other quess would be that I should find the rooms with

  <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
      <t:RequestServerVersion Version="Exchange2010_SP2" />
    </soap:Header>
    <soap:Body>
      <m:GetRoomLists />
    </soap:Body>
  </soap:Envelope>

Then get the room i need now that i have the email

<?xml version="1.0" encoding="utf-8"?>
  <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
      <t:RequestServerVersion Version="Exchange2010_SP1" />
    </soap:Header>
    <soap:Body>
      <m:ExpandDL>
        <m:Mailbox>
          <t:EmailAddress>building31@contoso.com</t:EmailAddress>
        </m:Mailbox>
      </m:ExpandDL>
    </soap:Body>
  </soap:Envelope>

And then somehow get the Calender, or the Availability of the room.. but i cant find this method anywhere :-(

nmarus commented 7 years ago

Just a stab, could be way off. You may have to authenticate with a user that has permissions to see and act on behalf those objects. If you can't do what you are looking to do from outlook with your creds, you are likely needing a service account to authenticate as.

nmarus commented 7 years ago

Closing due to inactivity.