A/B Test with 2mee messages is an experiment conducted to figure out the message that could possibly give higher CTR.
Prerequisites
Create Message A and Message B to be sent out by following the message creation process provided in the 2mee message creation section. Note the message Ids as messageIdA and messageIdB respectively.
From the list of User Segments available, pick the id of the segment that contains more than 8 devices. Note the segment id as filterId.
Note : Messages can also be created from Templates which is provided under Template Section.
curl -X POST 'https://exchange-prod-g.2mee.com/abtest/create' -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwNDA3MzczOSwiaWF0IjoxNjA0MDU1NzM5fQ.ZS06eeAkGHqXVJN2WQndVsl6e1GWOPHKNnBKnzxyhwG-0HoPlzaKX06ENO2E5FQ4kAvfChmcU-iSYWQHBzEPig" -H "accept: */*" -H "Content-Type: application/json" -d '{
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"description": "2mee A/B Test for API Documentation",
"abTestName": "2mee A/B Test",
"filterId": "9e862fc2-e3b6-4420-bf63-80ad4368ec88",
"expiry": 1440
}'
Update A/B Test
PUThttp://server-v1.2mee.com/abtest/update
Update the contents of an A/B Test. The fields that can be updated are abTestName, description, messageIdA, messageIdB , filterId(Audience), expiry and playTime.
Time at which the A/B Test has to be sent. There are two options available.
1. Schedule from now - Send out the A/B Test messages immediately
2. Schedule Later - Send out the A/B Test message at a specific time.
expiry
number
Duration(in minutes) from playTime after which the messages expire.
filterId
string
Audience Segment to which the A/B Test is scheduled for.
id
string
Id of the A/B Test message that needs to be updated
appId
string
Application Id for which A/B Test has to be done
abTestName
string
Name for recognising the A/B Test
description
string
A brief description about the A/B Test
messageIdA
string
Id of the "A message" to be sent out
messageIdB
string
Id of the "B message" to be sent out
playTime
number
Time at which the A/B Test has to be sent. There are two options available.
1. Schedule from now - Send out the A/B Test messages immediately
2. Schedule Later - Send out the A/B Test message at a specific time.
expiry
number
Duration(in minutes) from playTime after which the messages expire.
filterId
string
Audience Segment for which the A/B Test is scheduled.
appId
string
Application for which the A/B test message is being sent
id
string
Id of the A/B Test message
id
string
ID of the A/B Test message
appId
string
Application for which the A/B Test is being carried out.