FuelSDK-Python icon indicating copy to clipboard operation
FuelSDK-Python copied to clipboard

Limiting fields returned in Result for ET_Subscriber

Open BrianEdwardHoover opened this issue 10 years ago • 0 comments

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.

BrianEdwardHoover avatar Mar 18 '15 13:03 BrianEdwardHoover