Releases: mParticle/mparticle-python-sdk
Update version to 0.10.8
- Add support for Data Planning
- Add Travis Support
Update version to 0.10.7
- Add GDPR Consent State to SDK
Version 0.10.6
This release adds support for sending data with only MPID (mParticle user id) or DAS (device application stamp) as identities.
Note: DAS is set using the name mp_deviceid
.
Version 0.10.5
This release replaces the previous release which incorrectly included underscores in the new other2
, other3
, and other4
user identity types.
You can set these new identities as follows:
identities = mparticle.UserIdentities()
identities.other2 = 'foo other identity 2'
batch.user_identities = identities
Version 0.10.4
- New: Added support for additional user identities,
other_2
,other_3
,other_4
- Fixed: Restored support for Python 2.7
Version 0.10.0
This release adds some client-side field validation:
- IDFA, IDFV, and AAID must all be valid/parseable as UUID's
- the custom_attributes property of
AppEvent
,ScreenViewEvent
, andCommerceEvent
must be str, int, bool, or float. They cannot be lists.
The SDK will throw a ValueError
if any of the cases above are violated.
Version 0.9.4
SQS Upload Support
This release adds support for SQS uploading in via the AWS Boto3 client:
api_key
has been added as a property of theBatch
object, which is necessary with SQS authenticationApiClient.sanitize_for_serialization
is now a class method that can be called from anywhere for easy serialization ofBatch
objects into JSON-based SQS messages.
(Read here to learn how to upload data to mParticle via Amazon SQS](https://github.com/mParticle/mparticle-python-sdk/wiki/SQS-Upload)
Version 0.9.3
This release adds the connection_pool_size
property to the Configuration
object, allowing you to specify the maximum number of simultaneous connections to maintain.
configuration = mparticle.Configuration()
configuration.api_key = 'REPLACE WITH API KEY'
configuration.api_secret = 'REPLACE WITH API SECRET'
# Raise the connection pool size if necessary (defaults to 1)
configuration.connection_pool_size = 50
api_instance = mparticle.EventsApi(configuration)
Version 0.9.2
When being invoked asynchronously, the API client now handles exceptions and passes them to the given callback. For example:
def my_callback(response):
if type(response) is mparticle.rest.ApiException:
print 'An error occurred: ' + str(response)
else:
#successful uploads will yield an HTTP 202 response and no body
print response
api_instance.upload_events(batch, my_callback)
Version 0.9.1
- App/Custom events now default to a
custom_event_type
of'other'
.