none
An official Java client for Graph API or any of the REST APIs RRS feed

  • Question

  • I could find an Android SDK on Github, but not a Java SDK I can use in a web app. The Office SDK for Java, as a developer on the project said is deprecated and will be replaced. Unfortunately, no updates have been posted there.

    For a big project I am working on, it would be ideal for us to have the Java client. If would be great if someone knows about intentions of having an official Java client for the Graph API or any of the REST APIs.

    Wednesday, August 10, 2016 10:39 AM

All replies

  • Hi Haris Osmanagić,

    This is the forum to discuss questions and feedback for Developing Apps for Office 2013, I'll move your question to the MSDN forum for Office 365 for Developers

    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=Office365forDevelopers

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

    Thanks for your understanding.
    Thursday, August 11, 2016 1:44 AM
  • Hi ,

    Do you mean the Office 365 SDKs for Java ? It easily integrates services and data from Office 365 into Java apps using these libraries. 

    Best Regards,

    Nan Yu

    Thursday, August 11, 2016 6:35 AM
    Moderator
  • Hi there!

    I have tried that out, but as I mentioned in my initial post, the SDK is being deprecated, as a developer there said:

    https://github.com/OfficeDev/Office-365-SDK-for-Java/issues/1#issuecomment-182921982

    The commit history also gives the impression the project is abandoned.

    Thank you for taking the time to look into this,

    Haris

    Thursday, August 11, 2016 7:30 AM
  • Hi ,

    You could create your own "SDK" , but you need to firstly understand the auth basic concept . You could create the Web Browser Dialog using java to get the user credential ,send requests to complete Authorization Code Grant Flow , deserialize the response to get the required information such as code , token . Below is a c# version in console application :

    https://github.com/dream-365/OfficeDev-Samples/tree/master/samples/Office365DevQuickStart/OAuth2-basic 

    You could try to get a java version in java client .

    Best Regards,

    Nan Yu


    Friday, August 12, 2016 5:38 AM
    Moderator
  • Hi!

    I'd put it this way: it's not a question "Could I write my own SDK" but a question of "Why would I write my own SDK". Usually, an API client by people who know the service best, is the best client. It would save my time, and be of higher quality, because more people would work on it, and the community will give its feedback and contributions as well.

    Haris

    Friday, August 12, 2016 10:43 AM
  • Hi ,

    You could create your own "SDK" , but you need to firstly understand the auth basic concept . You could create the Web Browser Dialog using java to get the user credential ,send requests to complete Authorization Code Grant Flow , deserialize the response to get the required information such as code , token . Below is a c# version in console application :

    https://github.com/dream-365/OfficeDev-Samples/tree/master/samples/Office365DevQuickStart/OAuth2-basic 

    You could try to get a java version in java client .

    Best Regards,

    Nan Yu


    There would be no point or sense of creating an individual SDK when Microsoft could create their own as Azure Services already has a Java Development Center(https://azure.microsoft.com/en-us/develop/java/) as well as having the ability of deploying java web apps and some other things.

    My question is, why would you be creating such resources in regards to supporting Java without their being a plan or anything for releasing a Microsoft Java SDK?

    Friday, August 12, 2016 3:23 PM
  • I'm disappointed in this reply @Nan_Yu.

    We have an Azure cloud specialist from MS that came to assist us at work and gave a very similar answer.

    The systems we're trying to integrate O365 into are based on Java running in a UNIX environment.

    It would greatly help us if a Microsoft Graph client was created for Java users also please.



    Wednesday, July 26, 2017 12:05 AM