Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Office 365 API Tools for Visual Studio - Users and Files

Download

Right click “Save as…”

The Office 365 APIs allow you to easily integrate Office 365 services into your apps in a consistent way. You can access user data like calendars, documents and more using REST APIs and standard OAuth flows from any platform. The Office 365 API Tools for Visual Studio make it super easy for developers to access the services via .NET or JavaScript client libraries. These tools are currently in preview.

I've been meeting up with different team members building these tools and have been watching them progress through this preview period. In this interview I sit down with Chakkardeep Chandran (Chaks), a Program Manager on this project, and we talk about working with Users and Files.

Download the Office 365 API Tools for Visual Studio Preview here

And for more information see: .NET and JavaScript Libraries for Office 365 APIs 

Have questions? Connect with the team on StackOverflow. (Tag your questions with [Office365] & [API]).

Enjoy!
-Beth Massi, Visual Studio Community

Tags:

Follow the Discussion

  • CastroCastro

    Hi,

    I got this error and I do not know how to solve it :(

    It throws a exception at executing this code:
    var filesResults = await _client.Files.ExecuteAsync();
    return filesResults.CurrentPage;

    Error:
    "{\"error\":\"invalid_client\",\"error_description\":\"Invalid audience Uri 'Microsoft.SharePoint'.\"}"

    When I signOut and log in again, I can execute this code again.

    Could you explain me how I have to fix this?

  • @Castro: Can you explain what is your scenario and how are you creating the auth context for Files client? 

     

  • Philipp LeserPhilipp Leser

    Hi Mr. Chandran,
    thanks for the video, your blog and your good work on the Office365 API.

    I am playing around with the API for fun. I own Office365 for the private user, but also generated a test account with Office365 for small bussinesses.

    At the moment I think about a problem: let's assume I want to use the Office365 API to write/archive a huge file from a folder from my local hard drive (my pc) to Office3z65 OneDrive. I get this done for files up to 4GB using a buffered stream and Microsoft.Office365.SharePoint.SharePointClient.AddAsync(pathName, true, stream).

    But what about large file sizes? I thought about loading in up in chuncks, but I do not see how to do this using AddAsync (there is no Appending r Update for files? Right?). Is there a more proper way to use the 365 API for that problem?

    Thanks and regards
    Phil

  • MudasirMudasir

    may I request you to share the demo code, please ?

Remove this comment

Remove this thread

close

Comment on the Post

Already have a Channel 9 account? Please sign in