get https://api.imiconnect.io/resources/v1/customerappprofile/<appid>/<customerid>
This API is used to retrieve a customer's application profile for a given appid and customer profile key. The appid is a unique ID for individual channel assets.
Request
The get app profile request is specified as follows:
URI | https://api.imiconnect.io/resources/v1/customerappprofile/?identifier= ** appid: Specifies the application id. customerid**: A client specific ID (such as CRN) to uniquely identify a customer. |
Method | GET |
Request Headers
The following table describes the request headers:
Request Header | Description |
---|---|
key | Client profile key |
content-type | application/json |
##Request Example
https://api.imiconnect.com/resources/v1/customerappprofile/a_636035705699961900?identifier=8953
https://api.imiconnect.io/resources/v1/customerappprofile/BO20055029?customerId=8953&customerId=8954
For data privacy and security reasons, the REST API is served over encrypted HTTPS. The standard HTTP is not supported.
##Response Examples
{
"Status": 0,
"Description": "success",
"Records": [
{
"Attributes": [
{
"Name": "status",
"Value": 1,
"ID": 16528
},
{
"Name": "verified",
"Value": 1,
"ID": 16529
},
{
"Name": "twitterid",
"Value": "3223165326",
"ID": 16530
},
{
"Name": "twitter_handle",
"Value": "wsophyd3",
"ID": 16531
},
{
"Name": "twitter_name",
"Value": "Jack",
"ID": 16532
},
{
"Name": "customerId",
"Value": "8953",
"ID": 16533
},
{
"Name": "geolocation",
"Value": "",
"ID": 16534
},
{
"Name": "timezone",
"Value": "Pacific Time (US & Canada)",
"ID": 16535
},
{
"Name": "channel",
"Value": "twitter",
"ID": 16536
},
{
"Name": "createdOn",
"Value": "2016-07-08 10:49:20",
"ID": 16537
},
{
"Name": "updatedOn",
"Value": "2016-07-13 08:19:31",
"ID": 16538
}
],
"InwardLinks": [],
"OutwardLinks": [
{
"Records": [
[
{
"Name": "msisdn",
"Value": "919908505526",
"ID": 8574
},
{
"Name": "email",
"Value": "[email protected]",
"ID": 8575
},
{
"Name": "name",
"Value": "john",
"ID": 8576
},
{
"Name": "customerId",
"Value": "8953",
"ID": 8577
},
{
"Name": "sms",
"Value": "1",
"ID": 8578
},
{
"Name": "voice",
"Value": "1",
"ID": 8579
},
{
"Name": "rt",
"Value": "1",
"ID": 8580
},
{
"Name": "fb",
"Value": "1",
"ID": 8581
},
{
"Name": "twitter",
"Value": "1",
"ID": 8582
},
{
"Name": "wechat",
"Value": "1",
"ID": 8583
},
{
"Name": "wa",
"Value": "1",
"ID": 8584
}
]
],
"ProfileID": 341,
"ProfileName": "UKREG42_cpms_1"
}
]
}
],
"code": "1000",
"transid": "c01bea92-6fc6-4416-b1da-79f15a19fd0c"
}
{
"Status": 0,
"Description": "success",
"Records": [
{
"Attributes": [
{
"Name": "status",
"Value": 0,
"ID": 6063
},
{
"Name": "verified",
"Value": "0",
"ID": 6064
},
{
"Name": "customerId",
"Value": "8954",
"ID": 6065
},
{
"Name": "connectStatus",
"Value": 0,
"ID": 6066
},
{
"Name": "appId",
"Value": "",
"ID": 6067
},
{
"Name": "userId",
"Value": "8954",
"ID": 6068
},
{
"Name": "password",
"Value": "",
"ID": 6069
},
{
"Name": "deviceId",
"Value": "",
"ID": 6070
},
{
"Name": "batterylevel",
"Value": "11%",
"ID": 6071
},
{
"Name": "Bluetooth",
"Value": "1",
"ID": 6072
},
{
"Name": "cellid",
"Value": "",
"ID": 6073
},
{
"Name": "connectType",
"Value": "",
"ID": 6074
},
{
"Name": "email",
"Value": "",
"ID": 6075
},
{
"Name": "externalmemory",
"Value": "",
"ID": 6076
},
{
"Name": "foreground",
"Value": "0",
"ID": 6077
},
{
"Name": "foregroundapp",
"Value": "",
"ID": 6078
},
{
"Name": "idlescreen",
"Value": "",
"ID": 6079
},
{
"Name": "imei",
"Value": "",
"ID": 6080
},
{
"Name": "imsi",
"Value": "",
"ID": 6081
},
{
"Name": "internalmemory",
"Value": "11.85 GB",
"ID": 6082
},
{
"Name": "IP",
"Value": "192.168.1.2",
"ID": 6083
},
{
"Name": "language",
"Value": "English (en-IN)",
"ID": 6084
},
{
"Name": "oldlocation",
"Value": "[ { \"val\" : \"[17.40209177851416,78.48741864001678]\" , \"count\" : 1 , \"trans_date\" : { \"$date\" : \"2016-02-22T19:07:49.714Z\"}}]",
"ID": 6085
},
{
"Name": "location",
"Value": "[17.4026309524199,78.48846396756929]",
"ID": 6086
},
{
"Name": "MAC",
"Value": "",
"ID": 6087
},
{
"Name": "make",
"Value": "Apple",
"ID": 6088
},
{
"Name": "MCC",
"Value": "",
"ID": 6089
},
{
"Name": "MNC",
"Value": "",
"ID": 6090
},
{
"Name": "model",
"Value": "iPhone 6 (GSM+CDMA)",
"ID": 6091
},
{
"Name": "NFC",
"Value": "",
"ID": 6092
},
{
"Name": "os",
"Value": "ios",
"ID": 6093
},
{
"Name": "osversion",
"Value": "9.2.1",
"ID": 6094
},
{
"Name": "phonemode",
"Value": "",
"ID": 6095
},
{
"Name": "presence",
"Value": "",
"ID": 6096
},
{
"Name": "RAM",
"Value": "1.00 GB",
"ID": 6097
},
{
"Name": "resolution",
"Value": "750x1334",
"ID": 6098
},
{
"Name": "roaming",
"Value": "",
"ID": 6099
},
{
"Name": "serialnumber",
"Value": "",
"ID": 6100
},
{
"Name": "signalstrength",
"Value": "",
"ID": 6101
},
{
"Name": "teleco",
"Value": "",
"ID": 6102
},
{
"Name": "timespent",
"Value": 385,
"ID": 6103
},
{
"Name": "timezone",
"Value": "",
"ID": 6104
},
{
"Name": "useragent",
"Value": "Mozilla/5.0 (iPhone; CPU iPhone OS 9_2_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13D15",
"ID": 6105
},
{
"Name": "pushId",
"Value": "6682513c1a97730fb9b69e1358273571fa5181e930bc37b9f905adead18322d3",
"ID": 6106
},
{
"Name": "rtmId",
"Value": "8954_08519E2437BB40FEBDF694B5C88703DC",
"ID": 6107
},
{
"Name": "createdOn",
"Value": "2016-08-09 12:57:26",
"ID": 6108
},
{
"Name": "last_opened",
"Value": "2016-02-22T18:38:57+0530",
"ID": 6109
},
{
"Name": "last_upgraded",
"Value": "2016-02-18T20:24:11+0530",
"ID": 6110
},
{
"Name": "channel",
"Value": "rt",
"ID": 6111
}
],
"InwardLinks": [],
"OutwardLinks": [
{
"Records": [
[
{
"Name": "msisdn",
"Value": "918019031470",
"ID": 5950
},
{
"Name": "email",
"Value": "[email protected]",
"ID": 5951
},
{
"Name": "name",
"Value": "Chaitanya",
"ID": 5952
},
{
"Name": "customerId",
"Value": "8954",
"ID": 5953
},
{
"Name": "country",
"Value": "1",
"ID": 5954
},
{
"Name": "city",
"Value": "1",
"ID": 5955
},
{
"Name": "sms",
"Value": "1",
"ID": 5956
},
{
"Name": "voice",
"Value": "1",
"ID": 5957
},
{
"Name": "ussd",
"Value": "1",
"ID": 5958
},
{
"Name": "rt",
"Value": "1",
"ID": 5959
},
{
"Name": "fb",
"Value": "1",
"ID": 5960
},
{
"Name": "fbc",
"Value": "1",
"ID": 5961
},
{
"Name": "twitter",
"Value": "1",
"ID": 5962
},
{
"Name": "wechat",
"Value": "1",
"ID": 5963
},
{
"Name": "wa",
"Value": "1",
"ID": 5964
}
]
],
"ProfileID": 239,
"ProfileName": "UK412_cpms_1"
}
]
},
{
"Attributes": [
{
"Name": "status",
"Value": 0,
"ID": 6063
},
{
"Name": "verified",
"Value": "0",
"ID": 6064
},
{
"Name": "customerId",
"Value": "8953",
"ID": 6065
},
{
"Name": "connectStatus",
"Value": 0,
"ID": 6066
},
{
"Name": "appId",
"Value": "",
"ID": 6067
},
{
"Name": "userId",
"Value": "8953",
"ID": 6068
},
{
"Name": "password",
"Value": "",
"ID": 6069
},
{
"Name": "deviceId",
"Value": "08519E2437BB40FEBDF694B5C88703DC",
"ID": 6070
},
{
"Name": "batterylevel",
"Value": "56%",
"ID": 6071
},
{
"Name": "Bluetooth",
"Value": "1",
"ID": 6072
},
{
"Name": "cellid",
"Value": "",
"ID": 6073
},
{
"Name": "connectType",
"Value": "",
"ID": 6074
},
{
"Name": "email",
"Value": "",
"ID": 6075
},
{
"Name": "externalmemory",
"Value": "",
"ID": 6076
},
{
"Name": "foreground",
"Value": "0",
"ID": 6077
},
{
"Name": "foregroundapp",
"Value": "",
"ID": 6078
},
{
"Name": "idlescreen",
"Value": "",
"ID": 6079
},
{
"Name": "imei",
"Value": "",
"ID": 6080
},
{
"Name": "imsi",
"Value": "",
"ID": 6081
},
{
"Name": "internalmemory",
"Value": "11.85 GB",
"ID": 6082
},
{
"Name": "IP",
"Value": "10.0.3.199",
"ID": 6083
},
{
"Name": "language",
"Value": "English (en-IN)",
"ID": 6084
},
{
"Name": "oldlocation",
"Value": "[ { \"val\" : \"[17.43485703226193,78.39852736587122]\" , \"count\" : 1 , \"trans_date\" : { \"$date\" : \"2016-03-02T06:10:57.449Z\"}}]",
"ID": 6085
},
{
"Name": "location",
"Value": "[17.43586970339053,78.39709874994861]",
"ID": 6086
},
{
"Name": "MAC",
"Value": "",
"ID": 6087
},
{
"Name": "make",
"Value": "Apple",
"ID": 6088
},
{
"Name": "MCC",
"Value": "404",
"ID": 6089
},
{
"Name": "MNC",
"Value": "49",
"ID": 6090
},
{
"Name": "model",
"Value": "iPhone 6 (GSM+CDMA)",
"ID": 6091
},
{
"Name": "NFC",
"Value": "",
"ID": 6092
},
{
"Name": "os",
"Value": "ios",
"ID": 6093
},
{
"Name": "osversion",
"Value": "9.2.1",
"ID": 6094
},
{
"Name": "phonemode",
"Value": "",
"ID": 6095
},
{
"Name": "presence",
"Value": "",
"ID": 6096
},
{
"Name": "RAM",
"Value": "1.00 GB",
"ID": 6097
},
{
"Name": "resolution",
"Value": "750x1334",
"ID": 6098
},
{
"Name": "roaming",
"Value": "0",
"ID": 6099
},
{
"Name": "serialnumber",
"Value": "",
"ID": 6100
},
{
"Name": "signalstrength",
"Value": "",
"ID": 6101
},
{
"Name": "teleco",
"Value": "AirTel",
"ID": 6102
},
{
"Name": "timespent",
"Value": 4242,
"ID": 6103
},
{
"Name": "timezone",
"Value": "Asia/Kolkata",
"ID": 6104
},
{
"Name": "useragent",
"Value": "Mozilla/5.0 (iPhone; CPU iPhone OS 9_2_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13D15",
"ID": 6105
},
{
"Name": "pushId",
"Value": "cf81c1b537de65fb26bc023f83008a6594fb74f9c8c96482a4427e9289bed217",
"ID": 6106
},
{
"Name": "rtmId",
"Value": "8953_08519E2437BB40FEBDF694B5C88703DC",
"ID": 6107
},
{
"Name": "createdOn",
"Value": "2016-08-09 12:57:26",
"ID": 6108
},
{
"Name": "last_opened",
"Value": "2016-03-02T11:12:09+0530",
"ID": 6109
},
{
"Name": "last_upgraded",
"Value": "2016-03-02T11:12:09+0530",
"ID": 6110
},
{
"Name": "channel",
"Value": "rt",
"ID": 6111
}
],
"InwardLinks": [],
"OutwardLinks": [
{
"Records": [
[
{
"Name": "msisdn",
"Value": "919908505526",
"ID": 5950
},
{
"Name": "email",
"Value": "[email protected]",
"ID": 5951
},
{
"Name": "name",
"Value": "Chaitanya",
"ID": 5952
},
{
"Name": "customerId",
"Value": "8953",
"ID": 5953
},
{
"Name": "country",
"Value": "1",
"ID": 5954
},
{
"Name": "city",
"Value": "1",
"ID": 5955
},
{
"Name": "sms",
"Value": "1",
"ID": 5956
},
{
"Name": "voice",
"Value": "1",
"ID": 5957
},
{
"Name": "ussd",
"Value": "1",
"ID": 5958
},
{
"Name": "rt",
"Value": "1",
"ID": 5959
},
{
"Name": "fb",
"Value": "1",
"ID": 5960
},
{
"Name": "fbc",
"Value": "1",
"ID": 5961
},
{
"Name": "twitter",
"Value": "1",
"ID": 5962
},
{
"Name": "wechat",
"Value": "1",
"ID": 5963
},
{
"Name": "wa",
"Value": "1",
"ID": 5964
}
]
],
"ProfileID": 239,
"ProfileName": "UK412_cpms_1"
}
]
}
],
"code": "1000",
"transid": "67bcc0f8-6fef-4d1c-90e0-cfaaf3dafb63"
}
Status Codes
This API may return the following response codes:
Response Code | Message | Description |
---|---|---|
1000 | Success | Returned when the request is completed successfully. |
7000 | Invalid JSON | Returned when an invalid JSON request is sent. |
7001 | Authentication failed | Returned when the invalid service key or profile key is provided in the request. |
7003 | Mandatory parameters missing | Click here |