Skip to content

Commit

Permalink
Revert "Enable passing identifiers to ActionNetwork `upsert_person(…
Browse files Browse the repository at this point in the history
…)` (#861)" (#945)

This reverts commit 77ead60.

Co-authored-by: Ian <[email protected]>
  • Loading branch information
austinweisgrau and IanRFerguson authored Dec 8, 2023
1 parent 3f70a6c commit 80210fe
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions parsons/action_network/action_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,6 @@ def upsert_person(
mobile_number=None,
mobile_status="subscribed",
background_processing=False,
identifiers=None,
**kwargs,
):
"""
Expand Down Expand Up @@ -823,16 +822,6 @@ def upsert_person(
an immediate success, with an empty JSON body, and send your request to the
background queue for eventual processing.
https://actionnetwork.org/docs/v2/#background-processing
identifiers:
List of strings to be used as globally unique
identifiers. Can be useful for matching contacts back
to other platforms and systems. If the identifier
provided is not globally unique in ActionNetwork, it will
simply be ignored and not added to the object. Action Network
also creates its own identifier for each new resouce.
https://actionnetwork.org/docs/v2/#resources
e.g.: ["foreign_system:1", "other_system:12345abcd"]
**kwargs:
Any additional fields to store about the person. Action Network allows
any custom field.
Expand Down Expand Up @@ -897,8 +886,7 @@ def upsert_person(
data["person"]["postal_addresses"] = postal_addresses
if tags is not None:
data["add_tags"] = tags
if identifiers:
data["person"]["identifiers"] = identifiers

data["person"]["custom_fields"] = {**kwargs}
url = f"{self.api_url}/people"
if background_processing:
Expand Down

0 comments on commit 80210fe

Please sign in to comment.