GithubHelp home page GithubHelp logo

onenotedev / onenoteapi Goto Github PK

View Code? Open in Web Editor NEW
79.0 79.0 16.0 748 KB

JavaScript library to make calling the OneNote API easier.

License: MIT License

JavaScript 46.66% TypeScript 52.66% HTML 0.68%

onenoteapi's People

Contributors

anbinm-msft avatar foreverglory avatar iconix avatar janehazen avatar jogonzal avatar leakymemory avatar mttwc avatar pmartinez1 avatar stefaniehansen avatar stefuhnee avatar vishaalk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onenoteapi's Issues

Deploy OneNote addin for organization

OneNote add-in does not seem to be able to be uploaded via admin center or integrated apps for the organization

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Office on Web
  • Host [Excel, Word, PowerPoint, etc.]: OneNote
  • Office version number: 16.0.15325.41001
  • Operating System: Windows
  • Browser (if using Office on the web): Edge

Expected behavior

Being able to deploy and publish OneNote Add-in using Microsoft 365 admin center.

Current behavior

Cannot deploy the OneNote add-in for the organization

Steps to reproduce

Try to upload a manifest for OneNote add-in

  • When we try to upload the add-in from admin center we get no error, but the add-in is not uploaded. We noticed the following tooltip

image

  • When we try from integrated apps we get the following error (different guid each time) and from the network we receive the following response for the manifest: UnableToUploadAddInsForBlockedApps

image

  • We also tried with admin account to upload the manifest from the My organization tab, but this did not make the add-in available for the rest of the users

Attached the manifest with the image and end point URL's removed.

manifest-staging-onenote-ticket.txt

Context

OneNote paragraph getHtml() API does not return color information. #2713

I am trying to get paragraph html in OneNote. I have a line with various fonts, sizes, bold/italic and foreground and background colors. The HTML I get back contains styles for everything except colors. So the color information is lost.

The styles for the span tag should return color and background info for the paragraph.

Similar for other styles like bulleted lists.

Can a OneNote taskpane support SSO?

I have tried creating a new taskpane and including a WebApplicationInfo element in the manifest using the same credentials as my Word/Excel/PPT add-in and set the taskpane to load the same url.

When I open the taskpane in onenote after uploading the add-in manually I see the following error in the console:
TypeError: Office.auth is undefined

However as far as I can tell from the doco here: https://learn.microsoft.com/en-us/javascript/api/office/office.auth?view=common-js this should be available to me?

I would like my taskpane to be able to use the same authentication mechanisms for OneNote as the other office apps.

Seems that API doesn't work

Hello. I cannot get pages with any URL. But in dev site it works.
For reproduce - just query any pages in any sections.
What should i do?

Support different auth headers

We currently assume the token passed to the API wrapper is a bearer token, whereas it could also be something else e.g., RPS. We should be more flexible here.

page.analyzePage() returning value as null

When trying to fetch HTML of the whole page in onenote add in, analyzePage() returning value as null.
Here's a code snippet:
await OneNote.run(async (context) => { const page = context.application.getActivePage(); return context .sync() .then(async function () { console.log(page.analyzePage()) }) })

Here's what it logs in console:
{ m_isLoaded:true, m_type:0, m_value:null, value:null, [[Prototype]]:Object }

Update to jquery 3

I can't remember why we even need to use jquery in this project, but I just got a notification saying there's a (minor) vulnerability in the version we're using.

This is also probably a good opportunity to investigate if we need jquery at all (it's overkill for something like this)

OneNote is undefined

Article URL

https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/onenote-quickstart

Issue

I tried to run the code from the demo but I got the following error in console:
Error: TypeError: Cannot read property 'run' of undefined
I tried to console log OneNote and it returned undefined

I used Mac and OneNote online in chrome
used the newest versions of yo and office generator

https://www.youtube.com/watch?v=2GHCR61XjMo&ab_channel=RoeiBracha

##Important
this is an old issue that moved as you asked from:
OfficeDev/office-js#1142

I am no longer have a macbook to check it, but I think its happend on windows too
@lindalu-MSFT @ElizabethSamuel-MSFT

Is it possible to use GetWopiProperties?

Hi,

I'm trying to consume this endpoint: Microsoft.OneNote.Api.GetWopiProperties(frameAction='edit')
Using an Azure AD v1 OAuth token, this however fails with:

{
    "error": {
        "code": "10002",
        "message": "The service is currently unavailable. Please try again later.",
        "@api.url": "https://aka.ms/onenote-errors#C10002"
    }
}

Any idea if this is possible at all? //cc: @jogonzal

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.