Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 670 Bytes

File metadata and controls

21 lines (15 loc) · 670 Bytes
description Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest version. Current version is 6.x

GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);

PersonInterest personInterest = new PersonInterest();
LinkedList<String> categories = new LinkedList<String>();
categories.add("Sports");
personInterest.setCategories(categories);
personInterest.setDescription("World's greatest football club");
personInterest.setDisplayName("Chelsea FC");
personInterest.setWebUrl("https://www.chelseafc.com");
PersonInterest result = graphClient.me().profile().interests().post(personInterest);