Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Limiting fields returned in Result for ET_Subscriber #41

Open
@BrianEdwardHoover

Description

@BrianEdwardHoover

The documentation at https://code.exacttarget.com/apis-sdks/fuel-sdks/subscribers/subscriber-retrieve.html#pythonpost lists that we should be able to limit the number of fields returned. It explicitly states the property 'ID' can be used. If a call lists the props with only SubscriberKey, the results contain only the SubscriberKey. As soon as I add 'ID' to the list of props, the results return all fields.

Example:
debug = False
stubObj = ET_Client.ET_Client(False, debug)
getSubscriber = ET_Client.ET_Subscriber()
getSubscriber.auth_stub = stubObj
getSubscriber.props = ['ID','SubscriberKey','EmailAddress']

This will return all fields. Where as the following only returns the explicitly requested fields:
debug = False
stubObj = ET_Client.ET_Client(False, debug)
getSubscriber = ET_Client.ET_Subscriber()
getSubscriber.auth_stub = stubObj
getSubscriber.props = ['SubscriberKey','EmailAddress']

I'm not sure if this is an issue with API itself, the documentation being incorrect, or the SDK. If I can provide more info, please advise. I'm fairly new to Python, so please go easy on me.

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