curl --location 'https://matar.in.ngrok.io/api/v1/languages' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNjkyODcyNDIxLCJqdGkiOiIyZmNiODJiYi0zMDYzLTQzNGUtOGM5OS00NTVjMDhhY2Y3MmMiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiMzk1MDFUIiwibmJmIjoxNjkyODcyNDIxLCJleHAiOjE2OTM3MzY0MjF9.ovz0ItiPsYG_rqT3vEYl42WZBonX52NXf-oWE4DuGmQ'
{
"languages": {
"hi-IN": "हिंदी",
"kn-IN": "ಕನ್ನಡ",
"ur-IN": "اردو",
"mr-IN": "मराठी",
"ta-IN": "தமிழ்",
"te-IN": "తెలుగు",
"en-IN": "English"
}
}
{
"message": "Ain't no cake like that."
}
In the response, the language code is mapped to the language name which is used in various Matar API endpoints
curl --location 'https://matar.in.ngrok.io/api/v1/categories?organization_id=129487316' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNjkyODcyNDIxLCJqdGkiOiIyZmNiODJiYi0zMDYzLTQzNGUtOGM5OS00NTVjMDhhY2Y3MmMiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiMzk1MDFUIiwibmJmIjoxNjkyODcyNDIxLCJleHAiOjE2OTM3MzY0MjF9.ovz0ItiPsYG_rqT3vEYl42WZBonX52NXf-oWE4DuGmQ'
{
"categories": [
{
"_id": "AK9OPI",
"is_active": true,
"parent_category_id": null,
"sort_order": 8,
"title": "काम काज"
},
{
"_id": "B8KIKL",
"is_active": true,
"parent_category_id": null,
"sort_order": 7,
"title": "सपने और ख्वाइशें"
},
{
"_id": "WJ6BWG",
"is_active": true,
"parent_category_id": null,
"sort_order": 6,
"title": "सेहत"
},
{
"_id": "LP4LJ2",
"is_active": true,
"parent_category_id": null,
"sort_order": 5,
"title": "खाना ख़ज़ाना"
},
{
"_id": "KL9WNO",
"is_active": true,
"parent_category_id": null,
"sort_order": 4,
"title": "मनोरंजन"
},
{
"_id": "P0OKL3",
"is_active": true,
"parent_category_id": null,
"sort_order": 3,
"title": "सबसे बड़ा रुपया"
},
{
"_id": "ZESAJZ",
"is_active": true,
"parent_category_id": null,
"sort_order": 2,
"title": "समाज"
},
{
"_id": "TFTWNI",
"is_active": true,
"parent_category_id": null,
"sort_order": 1,
"title": "कृषि"
}
]
}