Skip to content

Commit dd74032

Browse files
author
Sebastien.Dangelo
committed
Add get_contacts_counts()
1 parent 18566c4 commit dd74032

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

FuelSDKWrapper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,3 +692,9 @@ def get_or_create_folder(self, folder_type, folder_name, parent_folder_id=None):
692692
res = self.create_object(ObjectType.FOLDER, property_dict=properties)
693693
if res.status:
694694
return self.get_or_create_folder(folder_type, folder_name)
695+
696+
def get_contacts_counts(self):
697+
token = self.get_client().authToken
698+
url = "https://www.exacttargetapis.com/contacts/v1/addresses/count/"
699+
res = requests.post(url, headers={"Authorization": "Bearer {}".format(token)})
700+
return res.json().get("totalCount", -1)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy