Created
March 27, 2017 21:52
-
-
Save angrycider/ce1d4e3a95dbd67c4c83176c04d08036 to your computer and use it in GitHub Desktop.
7. Retrieve Subscriber Attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Describe Subscriber | |
SoapClient.describe( | |
'Subscriber', | |
function( err, response ) { | |
if ( err ) { | |
// error here | |
console.log( err ); | |
return; | |
} | |
var filtered = response.body.ObjectDefinition.Properties.filter(function(item){ | |
return item.IsRetrievable == 'true' | |
}) | |
// response.body === parsed soap response (JSON) | |
// response.res === full response from request client | |
console.log( response.body.ObjectDefinition.ExtendedProperties); | |
console.log(filtered); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment