I have to get User Activity in SharePoint and OneDrive for Business. One way to get these information in reports through admin center -- https://blogs.office.com/2015/07/08/announcing-new-activity-logging-and-reporting-capabilities-for-office-365/ . By admin credentials we can search reports and export it to local machine. But, I want to know, is there any other way to fetch these reports(using rest api or any other library)? Does Microsoft provide any other way to fetch the user Activity from the Audit logs? If someone can please help me to resolve these questions, it will be greatly appreciated!! Thanks!
OneDrive for business is actually using sharepoint online. This is why there is no specific api for OneDrive. If you go in your browser and go to your OneDrive it should be Https:// yoursharepoint-my.sharepoint.com. So, you should be able to access the OneDrive audit logs using the api for sharepoint.