method: GET fields: token, or email and api-key headers: x-api-key (instead of api-key parameter) returns: { status: ok, user data } on success { status: error, desc: <desc> } on error SSL required token or API key required
Examples:
GET https://basket.example.com/news/lookup-user?token=<TOKEN> GET https://basket.example.com/news/lookup-user?api-key=<KEY>&email=<[email protected]>
If user is not found, returns a 404 status and 'desc' is 'No such user'.
On success, response is a bunch of data about the user:
{ 'status': 'ok', # no errors talking to ET 'status': 'error', # errors talking to ET, see next field 'desc': 'error message' # details if status is error 'email': 'email@address', 'format': 'T'|'H', 'country': country code, 'lang': language code, 'token': UUID, 'created-date': date created, 'newsletters': list of slugs of newsletters subscribed to, 'confirmed': True if user has confirmed subscription (or was excepted), 'pending': True if we're waiting for user to confirm subscription 'master': True if we found them in the master subscribers table }
Note that because this method always calls Exact Target one or more times, it can be slower than some other Basket APIs, and will fail if ET is down.