we would like to write custom service broker or endpoint assembly to perform bulk operation with sharepoint 2016
we need check how oAuth token used in sharepoint service broker to create sharepoint clientcontext object to perform sharepoint transactions
any source code which you are using oAuth token in k2 broker or endpoint assembly will be helpful