I had a requirement to retrieve quick links for a specific user from the user profile service in office 365 Sharepoint site (Sharepoint online). I have leveraged "User Profile Web Service"(UserProfileService.asmx) to achieve the same in PowerShell script using CSOM.
You can navigate to my site quick links path in SharePoint office 365 site as shown below
"https://<tenant>-my.sharepoint.com/_layouts/15/MyQuickLinks.aspx".
The below code reads the account name from an Excel file and retrieves Quicklinks from the user profile for the respective user account and exports the resulting data to a CSV File.
Note
All the account names are under "Title" column in the Excel sheet.
Code Usage
Please feel free to share your comments.
I hope this helps!!!!!