GET - SelfcareProduct
Get selfcare product information based on date updated
URL
Verb |
Url |
GET - Basic authentication |
/api/SelfcareProduct?UpdatedFrom=date time&UpdatedTo=date time&Page=page#&Take=#items |
Request Parameters
Parameter |
Description |
Format |
UpdatedFrom |
First datetime stamp from which you want to receive updated products. Used together with UpdatedTo |
string in format 'yyyy-MM-ddTHH:mm:ss' |
UpdatedTo |
Last datetime stamp From which you want to receive updated products. Used together with UpdatedFrom |
string in format 'yyyy-MM-ddTHH:mm:ss' |
Page |
Optional Parameter for paging, containing the page which is asked |
integer, default 0 |
Take |
Optional Parameter for paging, containing the number of items to return |
integer, default and maximum 500 |
Response Elements
[
{
"gtin": "EAN-13"",
"additionalTradeItemIdentificationValue": "Additional trade item identification",
"regulatedProductName": "Regulated product name",
"registrationCode": "code"",
"certificationValue": "ATC Code",
"dosageFormType": "Dosage form type",
"usageIndication": "Usage indication",
"usageRestriction": "Usage restriction",
"visitDoctorWhen": "Visit doctor when",
"netContent": {
"netContent": 20,
"netContent-unit": "Unit"
},
"gpc": {
"code": "Gpc code",
"description": "Gpc description"
},
"dosageRecommendation": {
"dosage": "Dosage",
"maxDailyDosage": "Maximum daily dosage",
"targetConsumerAge": "Traget consumer age",
"usageAdvice": "Usage advice"
},
"storageRecommendation": {
"storage": "Storage instruction",
"removal": "Removal instruction",
"shelfLife": "Shelflife"
},
"drugSideEffectsAndWarnings": [
{
"warning": "Drug sideeffects and warnings"
}
],
"consumerSalesCondition": {
"code": "Consumer sales condition - code",
"description": "Consumer sales condition - description"
},
"contraUsage": {
"contraUsageIndication": "Contra usage indication",
"useInPregnancy": "Use in pregnancy",
"useInBreastFeeding": "Use in breastfeeding"
},
"activeIngredients": [
{
"ingredient": "active ingredients - ingredient",
"amount": 20,
"unit": "Unit"
}
],
"documents": [
{
"description": "Documents - description",
"link": "Url to document"
}
],
"icons": [
{
"code": "Icons - code",
"description": "Icons - description",
"icon": "Url to icon"
}
],
"fieldofApplication": {
"fieldOfApplication": "Field of application"
},
"ingredientStatements": [
{
"ingredient": "Ingredient statement - ingredient",
"content": 100,
"unit": "Ingredient statement - unit"
}
],
"healthClaims": [
{
"ingredient": "Healthclaim - Ingredient",
"healthClaimDescription": "Healthclaim - Description"
}
],
"excipients": [
{
"excipientIngredientStatement": "Excipient - Statement",
"excipientIngredientStatementWarning": "Excipient - Warning"
}
]
}
,
{ ... (next Selfcare product) ... }
]
Code Samples
C#.net
public string RequestUrlGET(string URL, string SourceUser, string SourcePassword)
{
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(URL);
string credentials = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(SourceUser + ":" + SourcePassword));
request.Headers.Add("Authorization", "Basic " + credentials);
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
using (StreamReader content = new StreamReader(response.GetResponseStream()))
{
return content.ReadToEnd();
}
}
}