This repository was archived by the owner on Sep 10, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11{
2-   "version" : " 2.0.5 "  ,
2+   "version" : " 2.0.6 "  ,
33  "name" : " onenoteapi"  ,
44  "description" : " JavaScript library to make calling the OneNote API easier."  ,
55  "main" : " target/oneNoteApi.js"  ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export interface IOneNoteApi {
1212	getPages ( options : {  top ?: number ,  sectionId ?: string  } ) : Promise < ResponsePackage < any > > ; 
1313	updatePage ( pageId : string ,  revisions : Revision [ ] ) : Promise < ResponsePackage < any > > ; 
1414	createSection ( notebookId : string ,  name : string ) : Promise < ResponsePackage < any > > ; 
15+ 	createSectionUnderSectionGroup ( sectionGroupId : string ,  name : string ) : Promise < ResponsePackage < any > > ; 
1516	getNotebooks ( excludeReadOnlyNotebooks ?: boolean ) : Promise < ResponsePackage < any > > ; 
1617	getNotebooksWithExpandedSections ( expands ?: number ,  excludeReadOnlyNotebooks ?: boolean ) : Promise < ResponsePackage < any > > ; 
1718	getNotebookByName ( name : string ) : Promise < ResponsePackage < any > > ; 
Original file line number Diff line number Diff line change @@ -127,6 +127,16 @@ export class OneNoteApi extends OneNoteApiBase implements IOneNoteApi {
127127		return  this . requestPromise ( "/me/notes/notebooks/"  +  notebookId  +  "/sections/" ,  data ) ; 
128128	} 
129129
130+ 	/** 
131+ 	* CreateSectionUnderSectionGroup 
132+ 	*/ 
133+ 	public  createSectionUnderSectionGroup ( sectionGroupId : string ,  name : string ) : Promise < ResponsePackage < any > >  { 
134+ 		let  obj : Object  =  {  name : name  } ; 
135+ 		let  data  =  JSON . stringify ( obj ) ; 
136+ 
137+ 		return  this . requestPromise ( "/me/notes/sectionGroups/"  +  sectionGroupId  +  "/sections/" ,  data ) ; 
138+ 	} 
139+ 
130140	/** 
131141	* GetNotebooks 
132142	*/ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments