The following are the base URLs for the Supplier API.
| Environment | URL |
|---|---|
| PROD | https://insightsapi.samplecounts.com/ |
| Staging | https://st-insightsapi.samplecounts.com/ |
Staging is a sandbox environment that can be used for testing. You will need credentials to access it. Credentials can be requested by contacting your integration contact.
In this documentation, the base URL will appear as the variable {baseUrl}.
The following are the base URLs for the Client API.
| Environment | URL |
|---|---|
| PROD | https://insightsapi.samplecounts.com/ |
| Staging | https://st-insightsapi.samplecounts.com/ |
Staging is a sandbox environment that can be used for testing. You will need credentials to access it. Credentials can be requested by contacting your integration contact.
In this documentation, the base URL will appear as the variable {baseUrl}.
This API will allow supplier(s) to see the all mapped project linked to them.
Definition
GET '{baseUrl}/v1.0/Supplier/GetProjectList' \ --header 'x-api-key: < Key Provided to you >
Type
"Type" : GET,
Example Response
{
"projectId" : 50001,
"projectCode" : "IMC50001",
"projectCategory" : "Healthcare",
"cpi" : "0.50",
"countryCode" : "IN",
"country" : "India",
"surveyLink" : "https://stinsights.samplecounts.com/Router/Index?tid=xxxx&uid=[identifier]",
"loi" : 2,
"ir" : "45.00",
"startDate" : "2020-12-30",
"endDate" : "2021-02-28",
"sampleSize" : 100,
"deviceType" : {
"mobile" : true,
"tablet" : true,
"desktop" : true
},
}
{
"projectId" : 50002,
"projectCode" : "IMC50002",
"projectCategory" : "B2B",
"cpi" : "9.00",
"countryCode" : "GB",
"country" : "United Kingdom of Gr",
"surveyLink" : "https://stinsights.samplecounts.com/Router/Index?tid=xxxx&uid=[identifier]",
"loi" : 12,
"ir" : "65.00",
"startDate" : "2021-01-03",
"endDate" : "2021-01-31",
"sampleSize" : 50,
"deviceType" : {
"mobile" : true,
"tablet" : true,
"desktop" : true
},
}
{
"projectId" : 50005,
"projectCode" : "IMC50005",
"projectCategory" : "B2B",
"cpi" : "2.50",
"countryCode" : "IN",
"country" : "India",
"surveyLink" : "https://stinsights.samplecounts.com/Router/Index?tid=xxxx&uid=[identifier]",
"loi" : 12,
"ir" : "65.00",
"startDate" : "2020-12-30",
"endDate" : "2021-02-28",
"sampleSize" : 50,
"deviceType" : {
"mobile" : true,
"tablet" : true,
"desktop" : true
},
}
{
"projectId" : IMC50006,
"projectCode" : "IMC50006",
"projectCategory" : "Healthcare",
"cpi" : "12.50",
"countryCode" : "US",
"country" : "United States",
"surveyLink" : "https://stinsights.samplecounts.com/Router/Index?tid=xxxx&uid=[identifier]",
"loi" : 25,
"ir" : "45.00",
"startDate" : "2021-01-14",
"endDate" : "2021-01-31",
"sampleSize" : 100,
"deviceType" : {
"mobile" : true,
"tablet" : true,
"desktop" : true
},
}
This API will allow supplier(s) to get the project details for the particular mapped project.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
GET '{baseUrl}/v1.0/Supplier/GetProjectDetails?ProjectId=50001' \ --header 'x-api-key: Key Provided to you'
Type
"Type" : GET,
Example Response
{
"projectId" : 50001,
"projectCode" : "IMC50001",
"projectCategory" : "Healthcare",
"cpi" : "0.50",
"countryCode" : "IN",
"country" : "India",
"surveyLink" : "https://stinsights.samplecounts.com/Router/Index?tid=xxxx&uid=[identifier]",
"loi" : 2,
"ir" : "45",
"startDate" : "2020-12-30",
"endDate" : "2021-02-28",
"sampleSize" : 100,
"deviceType" : {
"mobile" : true,
"tablet" : true,
"desktop" : true
},
}
This API will allow a supplier(s) to get targeting associated with each project.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
GET '{baseUrl}/v1.0/Supplier/GetProjectTargetting?ProjectId=50001' \ --header 'x-api-key: Key Provided to you'
Type
"Type" : GET,
Example Response
[
{
"languageCode": : EN,
"questionId": : 10001,
"questionDesc" : "What is your age?",
"questionTitle" : "AGE",
"optionId" : 1890,
"questionOptionDesc" : "18-25",
},
{
"languageCode": : EN,
"questionId": : 10002,
"questionDesc" : "What is your gender?",
"questionTitle" : "GENDER",
"optionId" : 50001,
"questionOptionDesc" : "Male",
},
{
"languageCode": : EN,
"questionId": : 10002,
"questionDesc" : "What is your gender?",
"questionTitle" : "GENDER",
"optionId" : 50002,
"questionOptionDesc" : "Female",
},
{
"languageCode": : EN,
"questionId": : 10071,
"questionDesc" : "What is your current employment status?",
"questionTitle" : "EMPLOYMENT",
"optionId" : 51178,
"questionOptionDesc" : "Employed full-time",
},
{
"languageCode": : EN,
"questionId": : 10071,
"questionDesc" : "What is your current employment status?",
"questionTitle" : "EMPLOYMENT",
"optionId" : 51179,
"questionOptionDesc" : "Employed part-time",
},
{
"languageCode": : EN,
"questionId": : 10071,
"questionDesc" : "What is your current employment status?",
"questionTitle" : "EMPLOYMENT",
"optionId" : 51180,
"questionOptionDesc" : "Self-employed full-time",
},
]
This API will allow supplier(s) to get quotas associated with project. Supplier will be provided quota size.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
GET '{baseUrl}/v1.0/Supplier/GetProjectQuota?ProjectId=50001' \ --header 'x-api-key: Supplier Key Provided'
Type
"Type" : GET,
Example Response
{
"quota" : 100,
"message" : "Quota is available"
},
This API will allow supplier(s) to get country list of the project. This will returns with country code.
Location Request
GET '{baseUrl}/v1.0/Supplier/GetCountry' \ --header 'x-api-key: Supplier Secret Key'
Example Response
[{
"countryId": : 1,
"countryName" : "Afghanistan",
"countryCode" : "AF"
},
{
"countryId": : 2,
"countryName" : "Albania",
"countryCode" : "AL"
},
{
"countryId": : 3,
"countryName" : "Algeria",
"countryCode" : "DZ"
},
{
"countryId": : 4,
"countryName" : "American Samoa",
"countryCode" : "AS"
},
{
"countryId": : 5,
"countryName" : "Andorra",
"countryCode" : "AD"
},
{
"countryId": : 251,
"countryName" : "Åland Islands",
"countryCode" : "AX"
}],
This API will allow supplier(s) to get project status.
The possible project status will be;
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
GET '{baseUrl}/v1.0/Supplier/GetProjectStatus?ProjectId=50001 ' \ --header 'x-api-key: Supplier Secret Key'
Type
"Type" : GET,
Example Response
{
"projectId" : 50001,
"flagId" : 1,
"flagStatus" : "Active"
},
This API will allow supplier to get all stats for specific project.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
GET '{baseUrl}/v1.0/Supplier/GetProjectStatistics?ProjectId=50001 ' \ --header 'x-api-key: Supplier Secret Key'
Type
"Type" : GET,
Example Response
{
"projectCode" : "IMC50001",
"country" : "India",
"countryCode" : "IN",
"projectCategory" : "Healthcare",
"cpi" : "0.50",
"fieldLOI" : 0,
"fieldIR" : "100.00 %",
"conversion" : "100.00 %",
"dropRate" : "0.00 %",
"remaining" : 99,
"lastComplete" : "2021-01-04T10:04:12.24",
"complete" : "1",
"terminate" : 0,
"fraudSurveyQualityTerm" : 0,
"overQuota" : 0,
"dropout" : 0,
"dupliCateUser" : 0,
"geoIPMismatch" : 0,
"uniqueIP" : "0",
"preScreenTerminate" : 0,
"deviceType" : 0,
"rejected" : 0,
"testLink" : 0,
},
This API will allow supplier to get their Redirect Links for specific project.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
POST '{baseUrl}/v1.0/Supplier/SetRedirectLinks?ProjectId=50001' \ --header 'x-api-key: Supplier Secret Key'
Type
"Type" : POST,
Body
{
"Complete" : "https://stinsights.samplecounts.com/Thanks/Index?sid=fMbeBVAn&status=c&uid=[identifier]",
"Terminate" : "https://stinsights.samplecounts.com/Thanks/Index?sid=fMbeBVAn&status=t&uid=[identifier]",
"OverQuota" : "https://stinsights.samplecounts.com/Thanks/Index?sid=fMbeBVAn&status=q&uid=[identifier]",
"Close" : "https://stinsights.samplecounts.com/Thanks/Index?sid=fMbeBVAn&status=sc&uid=[identifier]",
"QualityTerm" : "https://stinsights.samplecounts.com/Thanks/Index?sid=fMbeBVAn&status=f&uid=[identifier]",
},
Example Response
Link updated successfully.
This API will allow supplier to get all Questions for specific country language.
Question List can be retrived for any specific language code and country code combination.
| Property | Type | Required | Description |
|---|---|---|---|
| CountryCode | string | Yes | Question list based on country selected |
| LangCode | string | Yes | Question list based on language selected |
Please download the reference CountryCode master file. Download
Please download the reference LanguageCode master file. Download
Location Request
GET '{baseUrl}/v1.0/Supplier/GetQuestionLibrary?CountryCode=US&LangCode=EN' \ --header 'x-api-key: Supplier Secret Key'
Type
"Type" : GET,
Example Response
[
{
"questionId" : 269,
"questionTitle" : "ACCOMMODATION_TYPE",
"questionDesc" : "In which type of accommodation have you stayed in the past year?",
"languageCode" : "EN",
"countryCode" : "US",
},
{
"questionId" : 270,
"questionTitle" : "AGE",
"questionDesc" : "What is your age?",
"languageCode" : "EN",
"countryCode" : "US",
},
{
"questionId" : 271,
"questionTitle" : "ALCOHOL_FREQUENCY",
"questionDesc" : "On average, how many alcoholic drinks do you consume in a week?",
"languageCode" : "EN",
"countryCode" : "US",
},
{
"questionId" : 272,
"questionTitle" : "AUTO_BRANDS",
"questionDesc" : "If you own/lease a car(s), which brand(s) are they?",
"languageCode" : "EN",
"countryCode" : "US",
},
]
This API will allow supplier to get all Question Options for specific question.
Location Request
GET '{baseUrl}/v1.0/Supplier/GetQuestionOptions?Id=10002' \ --header 'x-api-key: Supplier Secret Key'
Type
"Type" : GET,
Example Response
[
{
"optionId" : 50001,
"questionId" : 10002,
"optionText" : "Male",
"order" : 1,
"languageCode" : "en",
},
{
"optionId" : 50002,
"questionId" : 10002,
"optionText" : "Female",
"order" : 2,
"languageCode" : "en",
},
{
"optionId" : 50003,
"questionId" : 10002,
"optionText" : "Transgender",
"order" : 3,
"languageCode" : "en",
},
]
This API will allow Supplier to get all Questions for specific country language.
Question List can be retrived for any specific language code and country code combination.
| Property | Type | Required | Description |
|---|---|---|---|
| CountryCode | string | Yes | Question list based on country selected |
| LangCode | string | Yes | Question list based on language selected |
Please download the reference CountryCode master file. Download
Please download the reference LanguageCode master file. Download
Location Request
GET '{baseUrl}/v1.0/Supplier/GetQuestionOptionLibrary?langCode=EN&countryCode=US' \ --header 'x-api-key: Supplier Secret Key'
Type
"Type" : GET,
Example Response
[
{
"questionId" : 3443,
"questionTitle" : "Gender",
"controlType" : "Radio",
"questionDesc" : "What is your gender?",
"languageCode" : "EN",
"countryCode" : "US",
"options" :
[
{
"optionId" : 5245,
"questionId" : 3443,
"optionText" : "Male",
"order" : 1,
"languageCode" : "EN",
},
{
"optionId" : 5246,
"questionId" : 3443,
"optionText" : "Female",
"order" : 2,
"languageCode" : "EN",
},
],
},
]
conclave uses Hashing Mechanism for the encryption using SHA1 Encryption.
https://stinsights.samplecounts.com/thanks/verify?status=c&uid=4E53F51A-632D-4CC4-889E-EEED30A0673E
Sample C# code to generate hash :
public static string HashString(string StringToHash, string HachKey)Generated Hash = “6c8e890b31f489780a3796e02f64c4551ec85eb1”. Add this hash value in the URL mentioned in step 2.
Final URL which will be redirected as below:
https://stinsights.samplecounts.com/thanks/verify?status=c&uid=4E53F51A-632D-4CC4-889E-EEED30A0673E&hash=6c8e890b31f489780a3796e02f64c4551ec85eb1
This API will allow client to get all Questions for specific country language.
Question List can be retrived for any specific language code and country code combination.
| Property | Type | Required | Description |
|---|---|---|---|
| CountryCode | string | Yes | Question list based on country selected |
| LangCode | string | Yes | Question list based on language selected |
Please download the reference CountryCode master file. Download
Please download the reference LanguageCode master file. Download
Location Request
GET '{baseUrl}/v1.0/Client/GetQuestionLibrary?langCode=EN&countryCode=US' \ --header 'x-api-key: Client Secret Key'
Type
"Type" : GET,
Example Response
[
{
"questionId" : 3443,
"questionTitle" : "AGE",
"controlType" : "Radio",
"questionDesc" : "What is your age?",
"languageCode" : "EN",
"countryCode" : "US",
},
{
"questionId" : 3444,
"questionTitle" : "ALCOHOL_FREQUENCY",
"controlType" : "Radio",
"questionDesc" : "On average, how many alcoholic drinks do you consume in a week?",
"languageCode" : "EN",
"countryCode" : "US",
},
{
"questionId" : 3445,
"questionTitle" : "AUTO_BRANDS",
"controlType" : "Radio",
"questionDesc" : "If you own/lease a car(s), which brand(s) are they?",
"languageCode" : "EN",
"countryCode" : "US",
},
{
"questionId" : 3446,
"questionTitle" : "AUTO_DECISION_MAKER",
"controlType" : "Radio",
"questionDesc" : "Are you the primary decision maker in your household for automotive-related purchases?",
"languageCode" : "EN",
"countryCode" : "US",
},
{
"questionId" : 3447,
"questionTitle" : "AUTO_FUTURE_PURCHASE_20",
"controlType" : "Radio",
"questionDesc" : "When do you estimate that you will purchase/lease your next car?",
"languageCode" : "EN",
"countryCode" : "US",
},
{
"questionId" : 3448,
"questionTitle" : "AUTO_MANUFACTURE_DATE",
"controlType" : "Radio",
"questionDesc" : "What year was your main vehicle (owned or leased) manufactured?",
"languageCode" : "EN",
"countryCode" : "US",
},
]
This API will allow client to get all Question Options for specific question.
Location Request
GET '{baseUrl}/v1.0/Client/GetQuestionOptions?id=3465' \ --header 'x-api-key: Client Secret Key'
Type
"Type" : GET,
Example Response
[
{
"optionId" : 52116,
"questionId" : 3465,
"optionText" : "Administration/General Staff",
"order" : 0,
"languageCode" : "EN",
},
{
"optionId" : 52117,
"questionId" : 3465,
"optionText" : "Customer Service/Client Service",
"order" : 0,
"languageCode" : "EN",
},
{
"optionId" : 52118,
"questionId" : 3465,
"optionText" : "Executive Leadership",
"order" : 0,
"languageCode" : "EN",
},
{
"optionId" : 52119,
"questionId" : 3465,
"optionText" : "Finance/Accounting",
"order" : 0,
"languageCode" : "EN",
},
{
"optionId" : 52120,
"questionId" : 3465,
"optionText" : "Human Resources",
"order" : 0,
"languageCode" : "EN",
},
]
This API will allow client to get all Questions for specific country language.
Question List can be retrived for any specific language code and country code combination.
| Property | Type | Required | Description |
|---|---|---|---|
| CountryCode | string | Yes | Question list based on country selected |
| LangCode | string | Yes | Question list based on language selected |
Please download the reference CountryCode master file. Download
Please download the reference LanguageCode master file. Download
Location Request
GET '{baseUrl}/v1.0/Client/GetQuestionOptionLibrary?langCode=EN&countryCode=US' \ --header 'x-api-key: Client Secret Key'
Type
"Type" : GET,
Example Response
[
{
"questionId" : 3443,
"questionTitle" : "Gender",
"controlType" : "Radio",
"questionDesc" : "What is your gender?",
"languageCode" : "EN",
"countryCode" : "US",
"options" :
[
{
"optionId" : 5245,
"questionId" : 3443,
"optionText" : "Male",
"order" : 1,
"languageCode" : "EN",
},
{
"optionId" : 5246,
"questionId" : 3443,
"optionText" : "Female",
"order" : 2,
"languageCode" : "EN",
},
],
},
]
This API will allow client(s) to see all mapped project linked to them.
Definition
GET '{baseUrl}/v1.0/Client/GetProjectList' \ --header 'x-api-key: < Key Provided to you >
Type
"Type" : GET,
Example Response
[
{
"projectId" : 50096,
"projectCode" : "SACS12086",
"projectDescription" : null,
"projectName" : "facebook usage statistics",
"clientName" : null,
"projectFlag" : "1",
"projectType" : S,
"parentProjectId" : null,
"projectCategory" : "Consumer",
"startDate" : null,
"endDate" : null,
"countryName" : "U.S. Virgin Islands ",
"lOI" : null,
"projectCategory" : "Consumer",
"isPreScreen" : "true",
"sampleSize" : "300",
"ir" : "80.00",
"respondentClickQuota" : "600",
"isExclude" : null,
"isMultiLink" : null,
"isReContact" : null,
"isGeoLocation" : null,
"complete" : "10",
"terminate" : "3",
"overQuota" : "1",
"qualityTerm" : "1",
"dropout" : "1",
"lastComplete" : "2021-03-04T11:30:14.843",
"remainingSample" : "990",
"remainingClick" : "-10",
"fieldloi" : "1",
"fieldIR" : null,
"conversion" : "55.56 %",
"dropRate" : "5.56 %",
"cpi" : "1.50",
},
{
"projectId" : 50098,
"projectCode" : "SACS12098",
"projectDescription" : null,
"projectName" : "Social media statistics",
"clientName" : null,
"projectFlag" : "1",
"projectType" : S,
"parentProjectId" : null,
"projectCategory" : "Consumer",
"startDate" : null,
"endDate" : null,
"countryName" : "U.S. Virgin Islands ",
"lOI" : null,
"projectCategory" : "Consumer",
"isPreScreen" : "true",
"sampleSize" : "300",
"ir" : "80.00",
"respondentClickQuota" : "600",
"isExclude" : null,
"isMultiLink" : null,
"isReContact" : null,
"isGeoLocation" : null,
"complete" : "10",
"terminate" : "3",
"overQuota" : "1",
"qualityTerm" : "1",
"dropout" : "1",
"lastComplete" : "2021-03-04T11:30:14.843",
"remainingSample" : "990",
"remainingClick" : "-10",
"fieldloi" : "1",
"fieldIR" : null,
"conversion" : "55.56 %",
"dropRate" : "5.56 %",
"cpi" : "1.50",
},
{
"projectId" : 50098,
"parentProjectId" : null,
"projectType" : S,
"projectCode" : "SACS12086",
"projectName" : "facebook usage statistics",
"projectCategory" : "Consumer",
"clientName" : null,
"startDate" : null,
"endDate" : null,
"lastComplete" : "2021-03-04T11:30:14.843",
"cpi" : "1.50",
"respondentClickQuota" : null,
"remainingClick" : "-10",
"fieldloi" : "1",
"fieldIR" : null,
"isPreScreen" : "true",
"isMultiLink" : null,
"isReContact" : null,
"isExclude" : null,
"sampleSize" : null,
"projectDescription" : null,
"isActive" : null,
"remainingSample" : "990",
"complete" : "10",
"terminate" : "3",
"overQuota" : "1",
"dropout" : "1",
"lOI" : null,
"iR" : "61.11 %",
"conversion" : "55.56 %",
"dropRate" : "5.56 %",
"projectStats" : "1"
},
]
This API will allow client(s) to get the project details for the particular mapped project.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50228) |
Location Request
GET '{baseUrl}/v1.0/Client/GetProjectDetails?ProjectId=50228' \ --header 'x-api-key: Key Provided to you'
Type
"Type" : GET,
Example Response
{
"projectId" : 50096,
"projectCode" : "SACS12086",
"projectName" : "facebook usage statistics",
"projectDescription" : "Facebook Demographic Statistics: How Many population uses Facebook every month",
"countryName" : "India",
"countryCode" : "IN",
"loi" : "4",
"sampleSize" : 1000,
"startDate" : "2021-03-04T00:00:00",
"endDate" : "2021-03-31T00:00:00",
"ir" : "80.00",
"respondentClickQuota" : "0",
"projectCPI" : "0",
"singleLinkUrl" : "https://stinsights.samplecounts.com/TestSurvey/Index?uid=[identifier]",
"singleLinkUrlTest" : "https://stinsights.samplecounts.com/TestSurvey/Index?uid=[identifier]&test=1",
"isPreScreen" : "true",
"isDynamicThanksUrl" : "false",
"isCollectPII" : "false",
"isExclude" : "false",
"isReContact" : null,
"isMultiLinkUrl" : "false",
"isMobile" : "true",
"isTablet" : "true",
"isDesktop" : "true",
"projectFlag" : 1,
"sid" : "0",
"projectType" : "S",
"languageName" : "English",
"currencyCode" : "USD",
"projectCategory" : "Consumer",
"complete" : "10",
"terminate" : 3,
"overQuota" : 1,
"dropout" : 1,
"lastComplete" : "2021-03-04T11:30:14.843",
"remainingSample" : 990,
"remainingClicks" : null,
"fieldLOI" : 1,
"fieldIR" : "61.11 %",
"conversion" : "55.56 %",
"dropRate" : "5.56 %",
}
This API will allow client(s) to create projects.
Please download the reference master file for assigning CountryId, LanguageId, CurrencyCode & ProjectCategoryId. Download
| Property | Type | Required |
|---|---|---|
| ProjectName | String | Yes |
| CountryCode | String | Yes |
| LanguageCode | String | Yes |
| ProjectCategoryId | Integer | Yes |
| ProjectDescription | String | No |
| Loi | Decimal | Yes |
| Ir | Decimal | Yes |
| SampleSize | Integer | Yes |
| RespondentClickQuota | Integer | Yes |
| CurrencyCode | String | Yes |
| Cpi | Decimal | Yes |
| StartDate | Date | Yes |
| EndDate | Date | Yes |
| SingleLinkUrl | String | Yes |
| SingleLinkUrlTest | String | Yes |
| IsMobile | Bool | No (Default value will be true) |
| IsTablet | Bool | No (Default value will be true) |
| IsDesktop | Bool | No (Default value will be true) |
Location Request
POST '{baseUrl}/v1.0/Client/CreateProject' \ --header 'x-api-key: Client Secret Key'
Type
"Type" : POST,
Body
{
"projectName" : "TestClientAPI",
"CountryCode" : "US",
"LanguageCode" : "EN",
"ProjectCategoryId" : 3,
"ProjectDescription" : Test Note,
"Loi" : 1,
"Ir" : 2.36,
"SampleSize" : 100,
"RespondentClickQuota" : 500,
"CurrencyCode" : "2",
"Cpi" : 2.37,
"StartDate" : "2021-04-07",
"EndDate" : "2021-04-22",
"SingleLinkUrl" : "https://stinsights.samplecounts.com/Navigate?tid=4M9QJMB7&uid=[identifier]",
"SingleLinkUrlTest" : "https://stinsights.samplecounts.com/Navigate?tid=4M9QJMB7&uid=[identifier]",
"IsMObile" : true,
"IsTablet" : true,
"IsDesktop" : true,
},
Example Response
50001
This API will allow client(s) to update projects.
Please download the reference master file for assigning CountryId, LanguageId, CurrencyCode & ProjectCategoryId. Download
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
| Property | Type | Required |
|---|---|---|
| ProjectName | String | Yes |
| ProjectCategoryId | Integer | Yes |
| ProjectDescription | String | No |
| Loi | Decimal | Yes |
| Ir | Decimal | Yes |
| SampleSize | Integer | Yes |
| RespondentClickQuota | Integer | Yes |
| CurrencyCode | String | Yes |
| Cpi | Decimal | Yes |
| StartDate | Date | Yes |
| EndDate | Date | Yes |
| SingleLinkUrl | String | Yes |
| SingleLinkUrlTest | String | Yes |
| IsMobile | Bool | No (Default value will be true) |
| IsTablet | Bool | No (Default value will be true) |
| IsDesktop | Bool | No (Default value will be true) |
Location Request
POST '{baseUrl}/v1.0/Client/UpdateProject?ProjectId=******' \ --header 'x-api-key: Client Secret Key'
Type
"Type" : POST,
Body
{
"projectName" : "TestClientAPI",
"ProjectCategoryId" : 3,
"ProjectDescription" : Test Note,
"Loi" : 1,
"Ir" : 2.36,
"SampleSize" : 100,
"RespondentClickQuota" : 500,
"CurrencyCode" : "2",
"Cpi" : 2.37,
"StartDate" : "2021-04-07",
"EndDate" : "2021-04-22",
"SingleLinkUrl" : "https://stinsights.samplecounts.com/Navigate?tid=4M9QJMB7&uid=[identifier]",
"SingleLinkUrlTest" : "https://stinsights.samplecounts.com/Navigate?tid=4M9QJMB7&uid=[identifier]",
"IsMObile" : true,
"IsTablet" : true,
"IsDesktop" : true,
},
Example Response
50001
This API will allow client(s) to update project status.
Any Project having status not OnHold can be updated and if try to update OnHold Project status then below error message will be shown.
"Project status can't be updated as its OnHold."
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
| FlagId | Integer | Yes | FlagId of particular Project |
| FlagStatus | FlagId |
|---|---|
| Active | 1 |
| InActive | 2 |
| OnHold | 3 |
| Closed | 4 |
| Invoiced | 5 |
Location Request
POST '{baseUrl}/v1.0/Client/UpdateProjectStatus?ProjectId=****&FlagId=*' \ --header 'x-api-key: Client Secret Key'
Type
"Type" : POST,
Example Response
Project status updated successfully.
This API will allow client(s) to post targeting.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
POST '{baseUrl}/v1.0/Client/PostTargeting?ProjectId=******' \ --header 'x-api-key: Client Secret Key'
Type
"Type" : POST,
Body
{
"Questions" :[
{
"QuestionId" : 60002,
"Options" : [
300001,
300002
]
},
{
"QuestionId" : 60001,
"Ages" : [
"From":10,
"To":50
]
},
{
"QuestionId" : 4039,
"ZipCodes" : [
123456,
654321
]
},
]
}
Example Response
{True}
This API will allow client(s) to get targeting.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
GET '{baseUrl}/v1.0/Client/GetTargeting?ProjectId=50228' \ --header 'x-api-key: Key Provided to you'
Type
"Type" : GET,
Example Response
{
[
{
"QuestionId" : 60002,
"Options" : [
300001,
300002
]
},
{
"QuestionId" : 60001,
"Ages" : [
"From":10,
"To":50
]
},
{
"QuestionId" : 4039,
"ZipCodes" : [
123456,
654321
]
},
]
}
This API will allow client to get their Redirect Links for specific project.
| Property | Type | Required | Description |
|---|---|---|---|
| ProjectId | Integer | Yes | Project Id of particular Project (like: 50001) |
Location Request
GET '{baseUrl}/v1.0/Client/GetRedirectLinks?ProjectId=*****' \ --header 'x-api-key: Client Secret Key'
Type
"Type" : GET,
Example Response
{
"RedirectComplete" : "https://stinsights.samplecounts.com/Thanks/Index?status=c&uid=[identifier]",
"RedirectTerminate" : "https://stinsights.samplecounts.com/Thanks/Index?status=t&uid=[identifier]",
"RedirectOverquota" : "https://stinsights.samplecounts.com/Thanks/Index?status=q&uid=[identifier]",
"RedirectQualityTerm" : "https://stinsights.samplecounts.com/Thanks/Index?status=f&uid=[identifier]",
"RedirectSurveyClose" : "https://stinsights.samplecounts.com/Thanks/Index?status=sc&uid=[identifier]",
},
conclave uses Hashing Mechanism for the encryption using SHA1 Encryption.
https://stinsights.samplecounts.com/thanks/index?status=c&uid=4E53F51A-632D-4CC4-889E-EEED30A0673E
Sample C# code to generate hash :
public static string HashString(string StringToHash, string HachKey)Generated Hash = “6c8e890b31f489780a3796e02f64c4551ec85eb1”. Add this hash value in the URL mentioned in step 2.
Final URL which will be redirected as below:
https://stinsights.samplecounts.com/thanks/index?status=c&uid=4E53F51A-632D-4CC4-889E-EEED30A0673E&conhash= 6c8e890b31f489780a3796e02f64c4551ec85eb1