Skip to content

Commit

Permalink
DGJKSNCHIVBN
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdelrio committed Sep 27, 2023
1 parent 5aab418 commit 415eaee
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions parsons/mobilecommons/mobilecommons.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def __init__(self, username=None, password=None, company_id=None):
self.client = APIConnector(uri=MC_URI, auth=(self.username, self.password))

def _mc_get_request(
self,
endpoint,
first_data_key,
second_data_key,
params,
elements_to_unpack=None,
limit=None,
self,
endpoint,
first_data_key,
second_data_key,
params,
elements_to_unpack=None,
limit=None,
):
"""
A function for GET requests that handles MobileCommons xml responses and pagination
Expand Down Expand Up @@ -232,7 +232,7 @@ def _mc_post_request(self, endpoint, params):
raise HTTPError(response_dict["response"]["error"])

def get_broadcasts(
self, first_date=None, last_date=None, status=None, campaign_id=None, limit=None
self, first_date=None, last_date=None, status=None, campaign_id=None, limit=None
):
"""
A function for get broadcasts
Expand Down Expand Up @@ -271,12 +271,12 @@ def get_broadcasts(
)

def get_campaign_subscribers(
self,
campaign_id: int,
first_date: str = None,
last_date: str = None,
opt_in_path_id: int = None,
limit: int = None,
self,
campaign_id: int,
first_date: str = None,
last_date: str = None,
opt_in_path_id: int = None,
limit: int = None,
):
"""
A function for getting subscribers of a specified campaign
Expand Down Expand Up @@ -317,13 +317,13 @@ def get_campaign_subscribers(
)

def get_profiles(
self,
phones: list = None,
first_date: str = None,
last_date: str = None,
include_custom_columns: bool = False,
include_subscriptions: bool = False,
limit: int = None,
self,
phones: list = None,
first_date: str = None,
last_date: str = None,
include_custom_columns: bool = False,
include_subscriptions: bool = False,
limit: int = None,
):
"""
A function for getting profiles, which are MobileCommons people records
Expand Down Expand Up @@ -371,16 +371,16 @@ def get_profiles(
)

def create_profile(
self,
phone,
first_name=None,
last_name=None,
zip=None,
addressline1=None,
addressline2=None,
city=None,
state=None,
opt_in_path_id=None,
self,
phone,
first_name=None,
last_name=None,
zip=None,
addressline1=None,
addressline2=None,
city=None,
state=None,
opt_in_path_id=None,
):
"""
A function for creating a single MobileCommons profile
Expand Down

0 comments on commit 415eaee

Please sign in to comment.