Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems that API doesn't work #1

Open
studentIvan opened this issue Oct 17, 2016 · 6 comments
Open

Seems that API doesn't work #1

studentIvan opened this issue Oct 17, 2016 · 6 comments
Assignees

Comments

@studentIvan
Copy link

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?

@leakymemory
Copy link
Contributor

leakymemory commented Oct 17, 2016

Hey Ivan, thanks for reporting this. Without a little more detail it's hard to say what's going wrong for you. Here's an example where we use the API to get the list of notebooks with sections, which will hopefully help you get unblocked:

https://github.com/OneNoteDev/OneNotePicker-JS/blob/master/src/scripts/oneNotePickerDataSource.ts

If you still can't get things working then please let us know and we'll help you track things down.

Edit: Just realized you were talking about getting pages (vs. sections). This is something we haven't fully implemented yet. Matthew has added an issue to track adding support for the remaining APIs.

@mttwc mttwc self-assigned this Oct 17, 2016
@mttwc
Copy link
Contributor

mttwc commented Oct 17, 2016

Hi Ivan, which method are you calling on OneNoteApi? We haven't implemented GET pages yet (it's a wip).

@studentIvan
Copy link
Author

@mttwc, @leakymemory Thank you for answers, I will wait for implementing GET pages then

@studentIvan
Copy link
Author

I guess the problem is in API, because it works for everywhere excluding pages.
https://www.onenote.com/api/v1.0/me/notes/sections/0-21768C03A2EFB164!2083/pages?orderby=createdTime&select=id,title,createdTime,lastModifiedTime&top=50 this query returns me blank array (0-21768C03A2EFB164!2083 is just my section) but on the dev site (for testing rest api) it returns correct array full of pages. Can you send it to OneNote developers or just test it by yourself?

@studentIvan
Copy link
Author

Still no solution?

@mttwc
Copy link
Contributor

mttwc commented Aug 23, 2017

Hi Ivan, can you please do the following:

  • Issue the request that reproduces the unexpected response
  • In the response, copy the value of the 'X-CorrelationId' header and paste it here

I'll be happy to dig in for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants