Exchange Server Javascript Api - javascript

I'm building a web application which is a client side heavy application in which I'm implementing the contacts page. The contacts page will have options of showing contacts from different sources for exporting it into the current application. I've implemented Google Contacts, Yahoo Contacts, MS Live Contacts, etc. using OAuth. Now the next option is showing the contacts from exchange server in the application. I know that the new office 365 has a JavaScript api to pull contacts from newer office version which is already in progress. But I need a solution which works with older version too.
The requirement goes like this, User will have text boxes which are necessary to connect to an exchange server like email, password, server address, port, etc. and a button which need to send an ajax call to respective servers and fetch the necessary contact details after authenticating.
I've tried various method to get the details but I couldn't. I want to know is it really possible to connect an exchange server from JavaScript to get contacts? If yes, Please suggest some method to view the details.

The new JavaScript for Office API can only be used with Office (web) Add-ins (formerly Apps for Office). Otherwise you can use Exchange Web Services (EWS) to issue SOAP calls with JavaScript to do just about anything.
See: "How to: Process contacts in batches by using EWS in Exchange"

Related

Authenticating Google Calendar API from server to server directly using php

Background:
Creating a project where a user can create/edit/delete a calendar events on my calendar without the need to authenticate themselves. They can add or remove users on that calendar event. I have credentials to my google account to authenticate the requests. I want to talk directly to google calendar api without the need to insert username/password (which I can provide from the backend, if required).
Technology:
PHP7.0/ SQL SERVER/ JavaScript
Issue/Requirement:
I have created the project in Google and added credentials for "service account key". I have all the required keys for creating the project. How do I talk to the google server directly without using a frontend page or console and directly go ahead with creating an event?
Any suggestions welcomed. On a time crunch here.
How to quickly set up a PHP project using Google Calendar API: https://developers.google.com/calendar/quickstart/php
How to authenticate with a service account using Google APIs on PHP: https://github.com/googleapis/google-api-php-client#authentication-with-service-accounts
How to create events using the Calendar API using PHP language: https://developers.google.com/calendar/create-events#metadata
Using all the examples above you should be able to easily build yourself the solution you want.
Furthermore, I would suggest you check out the community guidelines on how to ask good questions.

Get recent documents from OneDrive with Microsoft Api Graph [NodeJS]

I'm working on an API which lists the 10th last documents on OneDrive in nodeJS. I know I can have this information by calling Microsoft API Graph with "drive/me" but it must have an
application ID to call the web service. I want to call the service with only Office authentification and not using application ID because it's not possible in my company.
Thanks in advance for the help!
You have to register your application with MS App Registration Portal here to get an application id, which is needed for your application to communicate to MS Graph API.
The users of your application will still use MS Office 365 user name and password to be authenticated to get data from Office 365.
Both of these are two entirely different things.

How to allow users to access my Google API application without authenticating for it?

I've developed a small webapp, that pulls raw data from a Google Spreadsheet and builds it on a html, so my website users can see, filter and navigate through the data.
For that, I'm using Google Sheets API v4, but even going to an HTML, users are asked to "AUTHORIZE" access using their Google Accounts, before seeing the table/data.
Is there a way to display this table/data on the HTML, without requesting users to authorize through OAuth?
If you're dealing with accessing data and performing Google API calls, authorization is Google's way to protect and secure the user's data.
If you want to display the data without needing to undergo authorization, publish it to the web:
File -> Publish to the web. An embed code which contains a public url will be provided for you.
Here's a sample of my public data:
https://docs.google.com/spreadsheets/d/1mvFPT2Xx8bNEMUdPC9TDOexzNqVS399bxQATV3JVOyg/pubhtml?widget=true&amp

How to get recurrence data from JavaScript API in office365

I need to fetch recurrence data for appointments like Repeat, From, To fields. In addition, I also need to get daily, weekly, or monthly pattern details for my Outlook office Add-in while it is in compose mode.
In an Outlook web add-in when something is not available directly from Office.js library you can try to get access to those data using Exchange Web Services.
Fortunately, Office.js provides two ways to access EWS.
You can request directly the EWS with a SOAP request from your client app. See method makeEwsRequestAsync in Office.context.mailbox
You can get an EWS token, send it to your server and make the request from there. Then you can use a nice SDK such as this one. You will invoke the method getCallbackTokenAsync from Office.Context.mailblox to retrieve such a token. In this link you will find an example on how to use this technique to retrieve email attachments (not available in Office.js)
To answer more precisely, the EWS seems to expose the information you need regarding recurrence, To etc. for appointments, see this link.

integrating facebook chat using graph api

I have been asked to integrate facebook chat in my application using javascript. I went through the chat api but that needs a domain url. I have to integrate the chat without the domain or the site url. I tried populating the online friends list through graph api, and I am able to successfully authenticate using the client flow example, but it does not redirect to my local host: http://localhost:8090/chatplugin/success.html. An error pops up telling me the resource is not found.
Is it possible to integrate FB chat using the graph api? I'm new to FB apis and I need more info.
Thanks:)
Short answer: no.
Longer answer: The Graph API lets you access all the information that is stored in Facebook's social graph; the social graph is the giant web that keeps all the information on people, events, messages, etc. Chat isn't part of the graph, it's a separate application, that also uses info from the graph to populate it.
While there may be other ways to sneak around (which I don't know), the Graph api doesn't provide what you need.
Please see the API available on Facebook API.
https://developers.facebook.com/docs/chat/

Categories