Skip to content

When filtering by email in get_person, search_by = 'email' no longer works. #16

@afitts

Description

@afitts

Expected Behavior

When passing an email string to get_person method of ActionNetworkApi I expect to get a JSON back with person's info.

Current Behavior

When passing an email string to get_person method of ActionNetworkApi I get the following error:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Possible Solution

On line 51 of api.py:
def get_person(self, person_id=None, search_by='email', search_string=None):
should now read as:
def get_person(self, person_id=None, search_by='email_address', search_string=None):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions