Skip to content

Commit 52dc695

Browse files
author
Yordy Gelvez
committed
new method to create contact in some folder
1 parent db0c388 commit 52dc695

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

microsoftgraph/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ def outlook_create_me_contact(self, **kwargs):
371371
url = "{0}me/contacts".format(self.base_url)
372372
return self._post(url, **kwargs)
373373

374+
def outlook_create_contact_in_folder(self, folder_id, **kwargs):
375+
url = "{0}/me/contactFolders/{1}/contacts".format(self.base_url, folder_id)
376+
return self._post(url, **kwargs)
377+
374378
def outlook_get_contact_folders(self, params=None):
375379
url = "{0}me/contactFolders".format(self.base_url)
376380
return self._get(url, params=params)

0 commit comments

Comments
 (0)