0
votes

Hi I am new to Objective C and Microsoft's Graph API and would to know how we can update a contact details such as job title, number, photo for Office 365 using the Outlook API.

Right now I am only able to retrieve contacts from the directory using code examples provided on GitHub. Help highly appreciated.

I am looking at: http://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/contact_update

1
That is the right link for personal contacts documentation. Are you getting an error when trying to update it? - Yina - MSFT
I don't know how to write the methods in objective c to update a user's contact detail. I made a bit of progress and have found these code snippets though: github.com/OfficeDev/O365-iOS-Snippets - es.uu

1 Answers

1
votes

Once you have the graph client, lets say it's at self.graphClient, you should be able to do

[[[[self.graphClient me] contacts:@"ID"] request] update:msGraphContactObject withCompletion:^(MSGraphContact *response, NSError *error) {

    }];

For more up to date sample, please visit