Mobile App Apis
Use mobile app apis to sync events and customer data with Growlytics platform.
post
https://dc.growlytics.in
/mcrs_appl_v1
App Launch API
The structure of the info object is mentioned below.
Structure of Info object in request body
Example of info object
1
{
2
appVersionCode: number, required
3
appVersionName: string, required
4
sdkVersion: number, required
5
6
// Is First Time
7
firstTime: boolean, required
8
9
deviceType: string, required
10
deviceManufacturer: string, required
11
deviceModel: string, required
12
deviceCarrier: string, required
13
14
osName: string, required
15
osVersion: string, required
16
17
platform: string, required, valid('ANDROID', 'IOS')
18
language: string, required
19
20
referrer: string, optional, // Traffic Source
21
utmInfo: {
22
us: string, required, optional, allow(null) // UTM source
23
um: string, required, optional, allow(null) // UTM medium
24
uc: .string, required, optional, allow(null) // UTM campaign
25
}
26
}
Copied!
1
{
2
"appVersionCode": 16,
3
"appVersionName": "4.2.11",
4
"osName": "Android",
5
"osVersion": "Android 9",
6
"language": "en",
7
"platform": "ANDROID",
8
"deviceType": "MOBILE",
9
"deviceManufacturer": "OnePlus",
10
"deviceModel": "ONEPLUS A5000",
11
"deviceCarrier": "Vodafone IN",
12
"sdkVersion": 1,
13
"firstTime": false,
14
"referrer": "https://facebook.com",
15
"utmInfo": {
16
"us": "google",
17
"um": "email",
18
"uc": "Diwali Campaign"
19
}
20
}
Copied!
post
https://dc.growlytics.in
/msv_cevt
Track Event API
The structure of the info object for event tracking is mentioned below.
Structure of Info object in request body
Example of info object
1
info: [
2
{
3
"name": Required, Max 120 characters
4
"value": Required, null allowed, Max 100 characters
5
"type": Required, Allowed: 'integer', 'float', 'double', 'long', 'boolean', 'date', 'string'
6
}
7
]
Copied!
1
info: [
2
{
3
"name": "Product Name",
4
"value": "Macbook Pro 2020",
5
"type": "string"
6
},
7
{
8
"name": "Category",
9
"value": "Electronics",
10
"type": "string"
11
},
12
{
13
"name": "SubCategory",
14
"value": "Laptops",
15
"type": "string"
16
},
17
{
18
"name": "Price",
19
"value": 139000,
20
"type": "integer"
21
},
22
{
23
"name": "Is Under Warranty",
24
"value": true,
25
"type": "boolean"
26
},
27
{
28
"name": "Product Expiry Date",
29
"value": "2020-01-20 19:14:15",
30
"type": "date"
31
}
32
]
Copied!
post
https://dc.growlytics.in
/msv_cs_id
Identify Customer API
The structure of the info object for identifying customers is mentioned below.
Structure of Info object in request body
Example of info object
1
info: [
2
{
3
"name": Required, Max 120 characters
4
"value": Required, null allowed, Max 100 characters
5
"type": Required, Allowed: 'integer', 'float', 'double', 'long', 'boolean', 'date', 'string'
6
}
7
]
Copied!
1
info: [
2
{ name: 'name', type: 'string', value: '-My-Name-' },
3
{ name: 'email', type: 'string', value: '[email protected]' },
4
{ name: 'mobile', type: 'string', value: 9876543210 },
5
{ name: 'Department', type: 'string', value: 'Test Department' },
6
{ name: 'Test Number', type: 'integer', value: 72305 },
7
{ name: 'Test Float', type: 'float', value: 7230554.345 },
8
{ name: 'Test Double', type: 'double', value: 723055465462.345 },
9
{ name: 'Test Long', type: 'long', value: 723055465462345678 },
10
{ name: 'Test Boolean', type: 'boolean', value: true },
11
{ name: 'Test Date', type: 'date', value: '2020-01-01 05:05:05' }
12
]
Copied!
post
https://dc.growlytics.in
/mpush_token
Save Mobile Push Token
Last modified 7mo ago